Groups
Groups
Sign in
Groups
Groups
CodenameOne Discussions
Conversations
Labels
About
Send feedback
Help
Programmaticaly triggering a press event on a picker button
26 views
Skip to first unread message
Thomas
unread,
May 24, 2018, 11:16:17 PM
5/24/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
5/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CodenameOne Discussions
Since it derives from button you can invoke press() followed by release().
Thomas
unread,
May 25, 2018, 8:29:02 AM
5/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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