If I use
call "mouseup" of button "Get location" on card 2
to simulate a button click, it works as intended.
I had hoped this would simulate a clicked line in a similar way.
call "mouseup" of line 1 of field "Index" on card 2
It causes no error, but does nothing.
How can I simulate the action of clicking the line?
Why does call not work used this way?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Why does call not work used this way?
Try...
Code: Select all
focus on field "Label"
focus on the mouseControl
focus on graphic "Move Me"
-
- Posts: 55
- Joined: Sat Sep 10, 2011 12:22 pm
Re: Why does call not work used this way?
Thank you for that tip, I shall give it a try.
Re: Why does call not work used this way?
To change the line of a list field, it's better to set the hilitedLines, because that will trigger the automatic os redraw stuff, and more importantly, also does not hijack the curser or moves it around.
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode