I am trying to develop a scrollbar control that allows me to take control of both the horizontal and vertical scrollbars for control of the front panel window. The native LabVIEW front panel scrollbars don't allow turning them on individually and they also include extra scrolling ranges in the upper, lower, left and right areas that can be annoying to a user.
There is a problem with LabVIEW 7 and the MS Forms ActiveX scrollbar which prevents it from being a solution. The MS Forms ActiveX scrollbar will work when it is initially created, but when the window is closed and re-opened, it fails to work. It must have something to do with the native LabVIEW code that creates the front panel window. There is c
urrently a "Corrective Action Request" on this issue.
I have also attempted to use the ActiveX flat scrollbar, but it does not operate like a real scrollbar. When you are scrolling, it does not report the value of the scroll until you have released the mouse. It also doesn't allow you to use the arrows or page up/page down functions of a scrollbar.
I have attached a couple of vi's that create a window scrollbar "child window" through the windows 'user32.dll' functions. One vi creates a scrollbar control, and the other vi creates a vertical scrollbar. They "kind of" work, but I am not having success returning the "ScrollBarInfo" structure from the GetScrollBarInfo function in the user32.dll. This information is vital to being able to use the arrows and the page up/page down function.
I'm hoping that someone that is better acquainted with the Windows API can figure out what I am missing in my sample vi's. In the sample vi's that I have attached, I haven't implemented the sc
rolling capability yet, but I do have the basic functionality of the scrollbars being monitored.
Any help would be greatly appreciated.