Dynamically resize a button

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
petero
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 59
Joined: Sat Jan 20, 2007 4:09 am

Dynamically resize a button

Post by petero » Wed Apr 11, 2007 12:59 am

Is it possible to allow a user who is running a finished stack to make the size of a button smaller or larger. Preferably by first holding down a modifier key.

The objective is for a caregiver to be able to resize buttons in an application for multiply diabled children who are now making on screen button selections by controlling the cursor with their eyes. Different kids have different control capabilities and thus the caregiver may have to make a button larger.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG » Thu Apr 12, 2007 5:22 am

Yes it is possible:
height
width
rectangle
left
top
right
bottom
topleft
topright
bottomright
bottomleft


As well as:
mouseDown theMouseButton
mouseUp theMouseButton
commandKey
altKey
shiftkey
keysDown


Additional not so relevant stuff:
grab
drag
click
move
commandkeyDown
optionKeyDown
commandKeyDown
shiftKeyDown
keyDown theKey
keyUp theKey
ArrowKey theKey
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply