Editfield resizible from User

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
haribo
Posts: 23
Joined: Fri Jun 29, 2007 8:04 pm

Editfield resizible from User

Post by haribo » Tue Jul 03, 2007 11:04 pm

Hi,
is there any way to make the fields from user resizible??????

another question, small field in another field, okay no problem, but the small field dont appears in printer, any ideas.
Ralle

kpeters
Posts: 112
Joined: Wed Mar 21, 2007 9:32 pm

Post by kpeters » Wed Jul 04, 2007 6:08 pm

Ralle ~

there are quite few ways to achieve that:

The one I prefer is to define a hotkey toggle to put the field into 'resize mode' (use functionKey or one of the related functions in a script for the field in question) . You then detect the cursor-left/cursor-right keys (using the arrowKey function) and widen or shrink the field in small steps (by changing the field's width property). When done, the user presses the hotkey again to turn off the 'resize mode'.

Of course, it can also be done with the mouse but size control that way tends to be inaccurate and tougher for the user.

HTH,
Kai

Post Reply