LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll setscrollpos not working

hi 

 

i am trying to make a joystick scroll through pages but it seem that the fucntion wont work

 

i have been able to toggle with a switch by calling list of application and giving  the handle of the next one to setforegroundwindow 

 

so i am hoping if someone can help setting scrolling  

0 Kudos
Message 1 of 6
(3,238 Views)

no one seems to know how to fix the problem ?

Spoiler
Smiley Sad
0 Kudos
Message 2 of 6
(3,149 Views)

Post your code so we have some idea of what you are doing, and a better idea of what you want to do.  Attach your VI, do not attach a picture.

 

Bob Schor

0 Kudos
Message 3 of 6
(3,140 Views)

As Bob told you, posting actual VI code instead of just some (very concise) text description is far superior for receiving any reaction.

 

But if you want to use SetScrollPos() Windows API function to change the setting of the LabVIEW front panel scrollbar you are most likely out of luck. The LabVIEW scrollbar is not a standard Windows scrollbar UI widget element but entirely handled by LabVIEW itself. SetScrollBar() should AFAIK not have any effect for a LabVIEW window, since as far as Windows is concerned, LabVIEW windows do not have a scrollbar at all.

 

And if you want to use this function to set the scrollbar position of a LabVIEW control (e.g. stringbox) I know for 100% sure that you can not do that, since LabVIEW controls are definitely not Windows UI widgets. They are completely handled, rendered and controlled by LabVIEW itself.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 6
(3,116 Views)

Thanks, Rolf -- I had not a clue what the Poster was asking, and hoped seeing some code would shed some light.

 

Bob Schor

0 Kudos
Message 5 of 6
(3,111 Views)

Agreed, the description isn't too great in whether it is a front panel or front panel object, but this should provide a method if it is just the front panel:

http://digital.ni.com/public.nsf/allkb/C48B2312F0DCC2AE8625683200028F43

0 Kudos
Message 6 of 6
(3,058 Views)