LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change the mouse pointer defaults

Hi
I am creating a graphic user interface and I was wondering whether or not I could change the default mouse pointer from the hand to an arrow.  I know that is is possible to change the mouse pointer using Set Cursor, but i only want to change it when it is in an emtpy space, in other words when the mouse pointer is not hovering over a combo box, list box etc. So again I was wondering whether it was possible to change the default mouse poniter only, which seems to be a hand,  and not have to reset the mouse pointer when it passes over any item, since then I would have too many items to account for
 
thanks
0 Kudos
Message 1 of 7
(7,208 Views)

I don't think you can change the default, but how about something like this?


___________________
Try to take over the world!
Message 2 of 7
(7,192 Views)

The program you gave me was great, so simple, yet so effective....yet I still have a problem.  The problem is that my interface has a giant TAB inside with lots controls.  So I need it to be an arrow when it is in the tab but not on the other controls.   I tried manipulating you program and used an if condition inside the event case that if the control reference of the event case is the same as the control reference of the tab then remain an arrow.  That works for other controls outside the tab and and the tab itself but it doesn't work with controls inside the tab...... I have attached your vi, just changed a little to see what i am saying.  I am pretty sure there must be a way around it so i am trying it out now, but if you know something already that might help, that'll be great

 

Reza Sed

 

 

0 Kudos
Message 3 of 7
(7,176 Views)
sorry, this is the right file, ignore the last one
0 Kudos
Message 4 of 7
(7,174 Views)
0 Kudos
Message 5 of 7
(7,171 Views)
0 Kudos
Message 6 of 7
(7,173 Views)
The Panel Controls[] refnum array does not contain refnums to the controls on the tab (or inside clusters).

You have to use the Tab Control reference to get a reference to the tab page and then get the array of references to the controls on that page. Then you can use those references for your cursor events.

It can get complicated very quickly if you have compound controls on your panel.

This modification of your VI shows how to get at the numeric control reference. It only looks at the first tab page and does no error checking.

Lynn
0 Kudos
Message 7 of 7
(7,168 Views)