LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can you enable a scroll bar in a disabled control

thank you for last point  and I accept that we should regard it in our programing but I think here it is not the issue 

0 Kudos
Message 31 of 33
(917 Views)

@Hatef wrote:

thank you for last point  and I accept that we should regard it in our programing but I think here it is not the issue 


Examples posted for others should follow good coding guidelines, else new users will copy the bad coding habits and perpetuate the problem.

Message 32 of 33
(903 Views)

Use the mouse down? event and map the croods of your scrollbar, you can even map it relative to the control itself, so using the positions of each string control and relative position of the scrollbar you can know when the user clicks it. Discard the mouse down event if cliked out of the scrollbar.

 

You can get the mapping by trial/error by clicking and using probes on the mouse down event coords to see when the scrollbar is selected, just determine correctly the top-bottom, left-right pixels.

0 Kudos
Message 33 of 33
(117 Views)