Mouse cursor issues...

Hey all,

I’ve got this bugger of a problem. Basically, we use a touchscreen with an
optional mouse. Now, for certain blocking calls, we use the mouse cursor to
indicate the system is doing something ( the hour glass icon). Now, if the
mouse is not plugged in, the mouse cursor dissappears and we lose this
functionality.

I’ve searched all over the place and have not found a workable solution.
One involved writing another driver, but I’m not too keen on that one. I’ve
gotten my hands dirty with regions and pipes to phin, only to have weird
things happen.

Any ideas on this?
If its a driver issue option, could you point me to the right file(s)…

On another note does, Pt_ARG_CURSOR_OVERRIDE work correctly? It seemed like
the perfect function for me to use on theseblocking calls. Just set it for
ABW_base, change the base cursor to hour glass, and all the others should
change. I create all my windows using Apcreatemodule and I don’t mess
around with parents…and ABW_base is the parent of all windows as I have
verified. When I do this, only ABW_base gets the new cursor, I have to
manully set each open window to the new cursor by traversing the widget list
type of PtWindow. Its not too much code, but could have been a lot simpler
had the override worked.

Any thoughts on this,

Thanks all


Yamin Bismilla

Rodney Dowdall wrote:

Hello Yamin

What kind of touchscreen are you using? The mouse cursor should appear for
the touchscreen? What are the options that are being passed to the
touchscreen driver?

As for Pt_ARG_CURSOR_OVERRIDE, it is working correctly. This option sets a
flag that allows a continer to override the cursor for it’s childeren. The
window is a special situation however. Just because a window is a parent
for another window it doesn’t mean that it actually contains the other
window. This is why the cursor changes when you go to other windows. If
you want to have the hourglass on each of your windows, you are going to
have to set the Pt_ARG_CURSOR_OVERRIDE flag on each of your windows that you
create and then change the cursor to the hoursglass for each of the windows
to get this desired behaviour.

Thanks,
Rodney


“Yamin Bismilla” <> y2bismil@hotmail.com> > wrote in message
news:aic2cv$ilu$> 1@inn.qnx.com> …

Hey all,

I’ve got this bugger of a problem. Basically, we use a touchscreen with

an

optional mouse. Now, for certain blocking calls, we use the mouse cursor

to

indicate the system is doing something ( the hour glass icon). Now, if

the

mouse is not plugged in, the mouse cursor dissappears and we lose this
functionality.

I’ve searched all over the place and have not found a workable solution.
One involved writing another driver, but I’m not too keen on that one.

I’ve

gotten my hands dirty with regions and pipes to phin, only to have weird
things happen.

Any ideas on this?
If its a driver issue option, could you point me to the right file(s)…

On another note does, Pt_ARG_CURSOR_OVERRIDE work correctly? It seemed

like

the perfect function for me to use on theseblocking calls. Just set it

for

ABW_base, change the base cursor to hour glass, and all the others should
change. I create all my windows using Apcreatemodule and I don’t mess
around with parents…and ABW_base is the parent of all windows as I have
verified. When I do this, only ABW_base gets the new cursor, I have to
manully set each open window to the new cursor by traversing the widget

list

type of PtWindow. Its not too much code, but could have been a lot

simpler

had the override worked.

Any thoughts on this,

Thanks all


Yamin Bismilla



\

You should be able to do this with a PtHook easily.
there is a few examples on PtHooks in the eQip source (www.qnxzone.com/eQip)
It’s not documented, but it works just fine.

Hello Yamin

What kind of touchscreen are you using? The mouse cursor should appear for
the touchscreen? What are the options that are being passed to the
touchscreen driver?

As for Pt_ARG_CURSOR_OVERRIDE, it is working correctly. This option sets a
flag that allows a continer to override the cursor for it’s childeren. The
window is a special situation however. Just because a window is a parent
for another window it doesn’t mean that it actually contains the other
window. This is why the cursor changes when you go to other windows. If
you want to have the hourglass on each of your windows, you are going to
have to set the Pt_ARG_CURSOR_OVERRIDE flag on each of your windows that you
create and then change the cursor to the hoursglass for each of the windows
to get this desired behaviour.

Thanks,
Rodney


“Yamin Bismilla” <y2bismil@hotmail.com> wrote in message
news:aic2cv$ilu$1@inn.qnx.com

Hey all,

I’ve got this bugger of a problem. Basically, we use a touchscreen with
an
optional mouse. Now, for certain blocking calls, we use the mouse cursor
to
indicate the system is doing something ( the hour glass icon). Now, if
the
mouse is not plugged in, the mouse cursor dissappears and we lose this
functionality.

I’ve searched all over the place and have not found a workable solution.
One involved writing another driver, but I’m not too keen on that one.
I’ve
gotten my hands dirty with regions and pipes to phin, only to have weird
things happen.

Any ideas on this?
If its a driver issue option, could you point me to the right file(s)…

On another note does, Pt_ARG_CURSOR_OVERRIDE work correctly? It seemed
like
the perfect function for me to use on theseblocking calls. Just set it
for
ABW_base, change the base cursor to hour glass, and all the others should
change. I create all my windows using Apcreatemodule and I don’t mess
around with parents…and ABW_base is the parent of all windows as I have
verified. When I do this, only ABW_base gets the new cursor, I have to
manully set each open window to the new cursor by traversing the widget
list
type of PtWindow. Its not too much code, but could have been a lot
simpler
had the override worked.

Any thoughts on this,

Thanks all


Yamin Bismilla