04-28-2016 10:05 PM
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
05-02-2016 05:18 PM
no one seems to know how to fix the problem ?
05-02-2016 09:22 PM
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
05-03-2016 07:54 AM - edited 05-03-2016 07:56 AM
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.
05-03-2016 08:12 AM
Thanks, Rolf -- I had not a clue what the Poster was asking, and hoped seeing some code would shed some light.
Bob Schor
05-07-2016 05:23 PM
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