Page 1 of 1

plugin or other way to change cursor style

PostPosted: Tue Feb 21, 2012 10:20 pm
by Hans Nieuwenhuis
Hi,

I wonder if there is a plugin or another way to change the style of the cursor/mouse pointer.
I want to use this to show the user that the solution is busy.
For long running actions I already use the headless client and/or progress plugin.

But for actions that may take only one or a few seconds I want to change the cursor style and set it back when the action is ready.

I think I have seen it somewhere and today I discussed this with Marcel Trapman, he also thought there is something available somewhere.
But maybe I mix it up with Oracle Forms where I used to do it that way.

Regards,

Re: plugin or other way to change cursor style

PostPosted: Wed Feb 22, 2012 1:56 pm
by wvitpr
HI Hans,

I use the busy plugin for this, there is a option to just show the cursor.

Re: plugin or other way to change cursor style

PostPosted: Wed Feb 22, 2012 5:27 pm
by Hans Nieuwenhuis
Thanks,

That works and the cursor is animated (I gues it runs in another thread )

Regards,

Re: plugin or other way to change cursor style

PostPosted: Wed Feb 22, 2012 5:32 pm
by Hans Nieuwenhuis
But I still think it would be nice if Servoy offers this as standard funtionality, would'nt it ??

Re: plugin or other way to change cursor style

PostPosted: Thu Feb 23, 2012 11:26 am
by Harjo
It should be doable, todo it right in Servoy with Java, look here: http://www.catalysoft.com/articles/busyCursor.html

Code: Select all
try {
  component.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
  doProcessing();
} finally {
  component.setCursor(Cursor.getDefaultCursor());
}


But I'm not sure how I set the Java syntax in Servoy!