How to hide mouse cursor?

Hi,

I’ve looked through the photon help pages for HideMouse/ShowMouse type
functions, but I cant
find a photon function to hide (or even just make invisible/transparent) the
mouse pointer!

Please help!

Kieran.

Here ya go :slight_smile:

#define ON 1
#define OFF 0

int CursorOnOff( int state )
{
FILE *fp;
char buffer[20];
PhRegion_t region;
int rid;

PhAttach( NULL, NULL );
//find pointer region
fp = popen( “phin -h -PInput -f r”, “r” );
if( fgets( buffer, 20, fp ) )
{
rid = atoi( buffer );
PhRegionQuery( rid, & region, NULL /&rect/, NULL, 0 );
if (state==ON)
region.flags |= Ph_PTR_REGION; // – cursor on
if (state==OFF)
region.flags &= ~Ph_PTR_REGION; // – cursor off
PhRegionChange(Ph_REGION_FLAGS, 0, ion, NULL /&rect/, NULL );
return(1);
}
else
return(0);
} // End function CursorOnOff



Previously, Kieran Tyrrell wrote in comp.os.qnx:

Hi,

I’ve looked through the photon help pages for HideMouse/ShowMouse type
functions, but I cant
find a photon function to hide (or even just make invisible/transparent) the
mouse pointer!

Please help!

Kieran.
\

Previously, Kieran Tyrrell wrote in comp.os.qnx:

Hi,

I’ve looked through the photon help pages for HideMouse/ShowMouse type
functions, but I cant
find a photon function to hide (or even just make invisible/transparent) the
mouse pointer!

Please help!

Kieran.

Did you try Pt_ARG_CURSOR_TYPE resource? Ph_CURSOR_NONE hides cursor…

Gen