Allowing user to change size and location of a field
gbojsza at gmail.com
Wed Mar 7 11:32:39 EST 2012
I would like to allow a user to be able to change the size and location of
a text field in an application.
The following allows the user to select the field via right-shift click and
then with the pointer tool move the field to where they want and resize the
With the next right-shift click the field is deselected and the browse tool
Problem is the user cannot put text into the field anymore?
Am I approaching this correctly?
on mouseDown theButton
if theButton is 3 AND the shiftkey is down then
get the selected of me
set the selected of me to false
set the tool to browse
set the selected of me to true
set the tool to pointer
Another question which may not be able to be answered is... can you limit
the number of characters in the field based on the new size the user has
More information about the Use-livecode