problems hiding mouse pointer on devi-dyna

Hi,
I’m trying to hide the mouse pointer within my appplication that is running
on a device with a touch screen.
I do that with the following code:
{
FILE *fp;
char buffer[20];
char *pPos;
PhRegion_t region;
int rid;
int rc;

PhAttach(NULL, NULL);
fp = popen( “/usr/bin/phin -h -Pdevi-hirun -f r”, “r” );
if (fp == NULL)
{
printf(“popen failed, %d - %s\n”, errno, strerror(errno));
return(0);
}
if (fgets( buffer, 20, fp ))
{
pPos = buffer;
while (pPos < ‘0’ && pPos < (buffer + 19))
{
++pPos;
}
rid = atoi(pPos);
PhRegionQuery(rid, & region, NULL /
&rect*/, NULL, 0);
if (state == 1)
region.flags |= Ph_PTR_REGION; // – cursor on
if (state == 0)
region.flags &= ~Ph_PTR_REGION; // – cursor off
rc = PhRegionChange(Ph_REGION_FLAGS, 0, &region, NULL /&rect/, NULL );
if (rc != 0)
printf(“PhRegionChange failed\n”);
return(1);
}
else
{
printf(“read failed, %d - %s\n”, errno, strerror(errno));
return(0);
}
}
running this code on a device that uses a devi-elo everything works fine,
but running this with a devi-dyna the mouse pointer still keeps alive
any suggestions
TIA
hp

problem solved, had to inquire the region of devi-dyna instead of devi-hirun

“HP Reichert” <hp.reichert@ideaREMOVEsoft.de> schrieb im Newsbeitrag
news:9uienp$p8f$1@inn.qnx.com

Hi,
I’m trying to hide the mouse pointer within my appplication that is
running
on a device with a touch screen.
I do that with the following code:
{
FILE *fp;
char buffer[20];
char *pPos;
PhRegion_t region;
int rid;
int rc;

PhAttach(NULL, NULL);
fp = popen( “/usr/bin/phin -h -Pdevi-hirun -f r”, “r” );
if (fp == NULL)
{
printf(“popen failed, %d - %s\n”, errno, strerror(errno));
return(0);
}
if (fgets( buffer, 20, fp ))
{
pPos = buffer;
while (pPos < ‘0’ && pPos < (buffer + 19))
{
++pPos;
}
rid = atoi(pPos);
PhRegionQuery(rid, & region, NULL /
&rect*/, NULL, 0);
if (state == 1)
region.flags |= Ph_PTR_REGION; // – cursor on
if (state == 0)
region.flags &= ~Ph_PTR_REGION; // – cursor off
rc = PhRegionChange(Ph_REGION_FLAGS, 0, &region, NULL /&rect/,
NULL );
if (rc != 0)
printf(“PhRegionChange failed\n”);
return(1);
}
else
{
printf(“read failed, %d - %s\n”, errno, strerror(errno));
return(0);
}
}
running this code on a device that uses a devi-elo everything works fine,
but running this with a devi-dyna the mouse pointer still keeps alive
any suggestions
TIA
hp