In My codenameone Form I cannot seem to change the hardware Cursor from DEFAULT to say WAIT during an operation

15 views
Skip to first unread message

shop.servic...@gmail.com

unread,
Jun 11, 2017, 7:05:37 PM6/11/17
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans 8.2
Jave 1.8_0_131
Simulator
Device

Inmy LoginForm class that Extends Form
I call         setEnableCursors(true);
Then I call setCursor(WAIT_CURSOR);
I (for testing purposes) Do not change it back, however the Cursordoes not change.

Please advise?
Not any help in the forums on this.

Shai Almog

unread,
Jun 12, 2017, 12:02:30 AM6/12/17
to CodenameOne Discussions, shop.servic...@gmail.com
That's a new feature so there won't be any help.

Why do you need that?
Notice that this applies to the mouse cursor which is only applicable in desktop apps and not in mobile apps.

Make sure you call setCursor on the right component, I'm assuming you invoked it on the form instead of the end component in the hierarchy.

shop.servic...@gmail.com

unread,
Jun 12, 2017, 9:16:02 AM6/12/17
to CodenameOne Discussions, shop.servic...@gmail.com


On Sunday, June 11, 2017 at 7:05:37 PM UTC-4, shop.servic...@gmail.com wrote:
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans 8.2
Jave 1.8_0_131
Simulator
Device

Sorry, perhaps I misspoke,
Is there a codenameone method to set the screen cursor such as the swirling asterisk as seen on apps
while processing say a login or some lengthy operation?
 

Shai Almog

unread,
Jun 13, 2017, 12:37:14 AM6/13/17
to CodenameOne Discussions, shop.servic...@gmail.com
Touch devices don't have cursors. I'm guessing you mean InfiniteProgress?
Check out the developer guide and component gallery
https://www.codenameone.com/manual/
https://www.codenameone.com/javadoc/com/codename1/ui/package-summary.html

shop.servic...@gmail.com

unread,
Jun 14, 2017, 8:47:18 AM6/14/17
to CodenameOne Discussions, shop.servic...@gmail.com
Yes, Exactly, I am new to mobile development as I have worked in the desktop world in java for 25 years.

Thanks.
Reply all
Reply to author
Forward
0 new messages