plugin or other way to change cursor style

Questions, tips and tricks and techniques for scripting in Servoy

plugin or other way to change cursor style

Postby Hans Nieuwenhuis » Tue Feb 21, 2012 10:20 pm

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,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: plugin or other way to change cursor style

Postby wvitpr » Wed Feb 22, 2012 1:56 pm

HI Hans,

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

Worldview IT
Sydney, Australia
User avatar
wvitpr
 
Posts: 219
Joined: Tue Apr 24, 2007 1:38 am

Re: plugin or other way to change cursor style

Postby Hans Nieuwenhuis » Wed Feb 22, 2012 5:27 pm

Thanks,

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

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: plugin or other way to change cursor style

Postby Hans Nieuwenhuis » Wed Feb 22, 2012 5:32 pm

But I still think it would be nice if Servoy offers this as standard funtionality, would'nt it ??
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: plugin or other way to change cursor style

Postby Harjo » Thu Feb 23, 2012 11:26 am

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!
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 9 guests

cron