Visio 2003 Forms 2.0 ComboBox scroll wheel issue

T

Tim Nash

Hello all, i need your help. I have a visio drawing to which i have added a
Forms 2.0 ComboBox control useing the devolper toolbar. When a user clicks on
the drop down and the list is displayed then uses the scroll wheel, it moves
the display of the visio drawing down as it would if the combo box were not
selected, but it also takes the list from the combo box down the screen with
it. I am looking for a way to prevent the this scrolling issue, either by
getting the scroll wheel to effect the list or, more likely, preventing the
scroll wheel from moveing the screen while the combo list is displayed. I
have searched through the combobox events, document events, and applciation
events but can't seem to find a good event that triggers when the document is
scrolled. any help?
Thank you
 
J

JuneTheSecond

Hi Tim ,
Maybe, you cannot scroll list of combpbox with wheel.
Tha last alternative may be to lock window scrolling
with Window.ScrollLock property.
 
T

Tim Nash

JuneTheSecond,
Thank you, that half works. i have the ability to lock scrolling when i
click the drop down, and this works great, however i have trouble turning the
ability to scroll back on.
here is the code i have lock scrolling

Private Sub ComboBox1_DropButtonClick()
ActiveWindow.ScrollLock = True
End Sub
i am looking for a good even to turn the scroll lock back on, i have found
this one

Private Sub ComboBox1_Click()
ActiveWindow.ScrollLock = False
End Sub

but it doesn't work consistantly, if i add somethign else to the code on the
click event, such as a msgbox command, it works, however running as it is now
it doesn't appear to work.. its very odd to me because even adding the msgbox
function after i set scroll lock seems to make it work. The other problem is
this event doesn't trigger if the user exits without selecting an option on
the list, by either clicking somewhere else on the document or by pressing
escape. any suggestions on why the event doesn't trigger correctly, or
possibly a better event to reneable the scroll?
Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top