Page 1 of 1

Why does call not work used this way?

Posted: Sat Nov 19, 2011 4:04 pm
by Happyrever
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?

Re: Why does call not work used this way?

Posted: Sat Nov 19, 2011 4:27 pm
by townsend
Try...

Code: Select all

focus on field "Label"
focus on the mouseControl
focus on graphic "Move Me"

Re: Why does call not work used this way?

Posted: Sat Nov 19, 2011 4:43 pm
by Happyrever
Thank you for that tip, I shall give it a try.

Re: Why does call not work used this way?

Posted: Sat Nov 19, 2011 6:10 pm
by BvG
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.