A1VBCode Forums

Controlling 'Scrolled' Location of Clicked Item from ImageCombo box List


http://www.a1vbcode.com/vbforums/Topic20342.aspx

By Matt - 10/6/2006

This is the big picture, I am currently working with an imagecombo
By default, when I click on an image associated with a comboitem
in its dropped down list, the combobox scrolls up.

I want to modify this behaviour so that while I am clicking on an image,
it wont scroll up, and that it should scroll up only when I click on
the textbox portion of the combobox item from its scrolled down list or
anywhere outside the dropdown list portion part of the same combobox.

The workaround I did was to allow the default scroll up behaviour onclick
(scrollup) and then immediately make it drop down again at the exact
scrolling position where it was before the click (so that user dont lose
orientation) where he was before the click.

But it is not happening fast enough and the flicker (due to scroll up then
forced scroll down) is very noticeable about say 1/4 of a second.

There are four images alongside the text portion of each comboitem and
each of these images serve as on/off toggle for various features of  the
application.

All suggestions welcome and thanks so much for all the help you can give.

Gratefully,
Matt