Re: UI design problem

2017-03-06 Thread Jim Lambert via use-livecode
> tbodine wrote: > > I'm using the mouseStillDown message to make either the text or image > follow the mouse until released. Glad you solved it. Jim Lambert ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscrib

Re: UI design problem

2017-03-05 Thread tbodine via use-livecode
Thanks Jim. Jim Lambert wrote > Presumably text in the field is editable by the user. > Therefore the field text cannot be locked and mousedowns will be used for > text selection rather than grabbing of the entire field, correct? > > Is the field user resizable? A right-click toggles the text

Re: UI design problem

2017-03-05 Thread Jim Lambert via use-livecode
Food for thought. Presumably text in the field is editable by the user. Therefore the field text cannot be locked and mousedowns will be used for text selection rather than grabbing of the entire field, correct? Is the field user resizable? If so, do you present the user with dotted border and

Re: UI design problem

2017-03-04 Thread Dr. Hawkins via use-livecode
On Sat, Mar 4, 2017 at 2:04 PM, tbodine via use-livecode < use-livecode@lists.runrev.com> wrote: > Dr. Hawkins via use-livecode wrote > > pass mousedown > > Err, no I didn't :) But my though would be after pasting, to move the image control (slider, group, whatever) to the top level, and to hide

Re: UI design problem

2017-03-04 Thread Tom Glod via use-livecode
ahhh how do you know if the user wants to move the image or the text? maybe use a modifier key to help you differentiate between what the user wants to grab. if controlKey() is down then ... or maybe give a hotkey to select either text or image. and maybe a red border around the select

Re: UI design problem

2017-03-04 Thread Jonathan Lynch via use-livecode
The message would pass up the message path, to the group that owns both targets. That is where you would place the script to decide which object to move. The following code will help you know which object was clicked: Put word 1 of the target into tObjectType If tObjectType = "field" then -- do

Re: UI design problem

2017-03-04 Thread tbodine via use-livecode
Dr. Hawkins via use-livecode wrote > pass mousedown "Pass mousedown" doesn't work here. (Message does not travel down to the image control below the field.) I used a send "mousedown" which does travel through, but what doesn't work then is the "grab image 'blah'" line in the mousedown handler atta

Re: UI design problem

2017-03-04 Thread Tom Glod via use-livecode
the solution is simple . look up how to pass messages, it is easy and made for in situations such as this. pass mousedown On Sat, Mar 4, 2017 at 3:52 PM, tbodine via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Livecoders. > > I am hoping you'll have some ideas for solving a UI