Here's an example:

------8<------
#include <picogui.h>
int main(int argc, char **argv) {
   pgInit(argc,argv);
   pgDriverMessage(PGDM_CURSORVISIBLE, atoi(argv[1]));
   pgFlushRequests();
}
------>8------

If this program was compiled as 'pgcursor' you could use 'pgcursor 0' to turn off the 
cursor and 'pgcursor 1' to turn it back on.

Note that if you try this with the SDL video driver, the cursor will reappear when you 
move the mouse. This is a function of the SDL driver, not PicoGUI itself. In drivers 
where the cursor is optional, like touchscreen drivers, the cursor will stay off.

On Wed, 08 August 2001, Pascal Bauermeister wrote:

> 
> Hi,
> 
> does anybody know how to blank the cursor from a client application (not from a 
>driver) ?  I suppose one must send a PGDM_CURSORVISIBLE command, but how is the exact 
>form ?
> 
> Thanks,
> 
>   Pascal
> 
> 
> -- 
>   Pascal Bauermeister
>   Head of Software Development
> 
>   SMARTDATA
>   PSE-A / EPFL
>   CH-1015 Lausanne
> 
>   http://www.smartdata.ch
>   mailto:[EMAIL PROTECTED]
>   Phone: +41 (21) 693 84 98
>   fax:   +41 (21) 693 84 91
> 
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel

--
Only you can prevent creeping featurism!


_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to