Programmaticaly triggering a press event on a picker button

26 views
Skip to first unread message

Thomas

unread,
May 24, 2018, 11:16:17 PM5/24/18
to CodenameOne Discussions
I need to programmatically trigger a press event on a picker (so that the picker automatically open the picker dialog). 
How can I do that?

Shai Almog

unread,
May 25, 2018, 1:17:45 AM5/25/18
to CodenameOne Discussions
Since it derives from button you can invoke press() followed by release().

Thomas

unread,
May 25, 2018, 8:29:02 AM5/25/18
to CodenameOne Discussions
OK thanks. I previously tried with pressed() and it didn't work but calling release() after pressed() is actually working.
Reply all
Reply to author
Forward
0 new messages