Giter Site home page Giter Site logo

mp-livecode-controls's People

Contributors

madpink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mp-livecode-controls's Issues

controlBufferV issues

oo much space at the bottom, too little space at the top.

Appears that controlBufferV is only adding space to the bottom and not the top.

Everything looks properly spaced when set to 0.

-Sliders
-Switches
-Progress Bars
-Numeric Up/Down
-Button Bar

forceRedraw and manualRedraw - Useful?

forceRedraw is semi-useful for testing, but at this point it might be obsolete

if forceRedraw is removed, manualRedraw would need to be removed

(if kept, add to wiki and help docs)

Fix titleTextSize

Property is not being set correctly when widget is created. Have kludge in place for now, but need to track down why it is happening

Add Action Wheel

Add the Action Wheel style as an alternative to the Action button bar.

Output display box

Idea: small customizable box to display something. For example:

  • PIN output
  • Colors for RGB sliders
  • Misc. information

controlBufferV issues

Too much space at the bottom, too little space at the top.

Appears that controlBufferV is only adding space to the bottom and not the top.

Everything looks properly spaced when set to 0.

Button Bar - Fixed Height/Multiple Columns

Fixed height buttons and multiple columns are not displaying correctly.

  • Need to calculate number of buttons per column when set to fixed width.
  • Make column count dynamic?
  • What do we do with buttons that exceed the working area?

Tabbed control "pages"

Not sure where to put tabs, and if they will play well with bottom buttons, title and input boxes.

General plan of action:
-separate array of data for tabs
-variable and/or property to keep track of which tab is selected
-boolean property to show or hide tabs
-each tab reads in a saved control set to mData

Sliders - Fix movement from stopping

Movement of the handle stops when the upper or lower limit is reached and it requires regrasping in order to move again. Also, sometimes it gets stuck.

Set properties via myData

Needs to be tested: array key "props" when added to myData should update individual properties throughout.

Test in:

  • ButtonBar
  • DialogBox
  • Sliders
  • Switches
  • Numeric up/Down
  • Form Backdrop

Add icon with LCS without setting iconData

To add new icons with LCS, you need to get iconData, add it and then set iconData again.

Need to add an option to add an SVG path using the correct keys without taking and setting the entire array.

Button Bar - PIN PAD

Add button bar layout option that will produce a pin pad. Use in conjunction with #14 to draw circles to represent input.

Form Backdrop Enhancements

  • Add right alignment option
  • Add center alignment option with adequate space under
  • Add options for Left and Right labels
  • Add rectangle info to appData
  • Compute sizes and locations for fields to be placed
  • Default script to add fields?

Numeric - Stops at Min

Numeric Up/Down stalls when it hits min value, will not increase. (works fine when max is hit)

Button Bar - fix hilighting

It seems as though when you press a button and it is hilighted, it may stay hilighted.

Possibly due to movement out of the box that the button is in?

Button Wheel - Configurable number of buttons

` 1. create "inner circle": subtract radius of button's circle from radius of main circle
tRadiusInnerCircle = tRigRad-tLilRad

  1. calculate angle at which the center of each button will be:
    put the number of elements in mData into tCount
    tCicleLocation[buttonnum]["angle"] = (tCount)/(2*pi())

  2. calcualte x & y for the center of each circle:
    tCircleLocation[buttonnum]["x"] = tLilRad * (

-- tBigRad is the radius of the main circle across the widget
if my width > my height then
  put my height/2 into tBigRad
else
  put my width/2 into tBigRad
end if

-- tLilRad is the radius of each small button around the edge
put tBigRad/4 into tLilRad

-- finding the corrdinates of the center of the main cirle
put my width/2 into tBigX
put my height/2 into tBigY
put point [(my width/2),(my height/2)] into tCenter
fill circle path centered at tCenter with radius tBigRad on this canvas

-- create an "inner circle" by subtracting the radius of a button from the radius of the main circle
put tBigRad - tLilRad into tInnerRad
-- calculate angle in radians from the for the center of each button
put (the number of elements in mData)/(2 * pi()) into tButtonAngles

repeat with tButtonNumber from 1 up to the number of elements in mData
  put tInnerRad * (tButtonNumber-1 * tButtonAngles) into tAngle
  put tBigX * cos(tAngle * pi()) into tButtonX
  put tBigY * sin(tAngle * pi()) into tButtonY
  put point [tButtonX, tButtonY] into tButtonCenter
  fill circle path centered at tButtonCenter with radius tLilRad on this canvas
end repeat

`

Fix all true and false test to actual booleans

-in some places, truth value is held in strings instead of Boolean values
-started doing this because of array issues... will this cause issues when setting myData with boolean values?

Animation

Animate the interaction of controls. For example, animate a switch once pressed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.