borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (currently logged on IP or PCName)Next Topic (Keeping Combo Box Dropped Down Even When Programmatically Scrolling) New Topic New Poll Post Reply
AndreaVB Forum : API : Controlling 'Scrolled' Location of Clicked Item from Combobox List
Poster Message
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42

icon Controlling 'Scrolled' Location of Clicked Item from Combobox List

Wondering if anybody has succeeded in trying to make a comboitem clicked by user retain its exact scrolled position from the combobox's list portion instead of defaulting automatically to be located directly below the the edit/textbox portion of the combobox.

Currently I cannot figure it out and I have been trying out CB_GETTOPINDEX  and CB_SETTOPINDEX to help (so far no luck -- I am trying out more experiments) said behaviour is causing the user to lose his orientation when I do the call on CB_SHOWDROPDOWN

I am trying to give the user the illusion that the combobox does not scroll up (no luck as there is always that flicker) by calling the CB_SHOWDROPDOWN immediately after user clicks (default scroll up).

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

Matt

05-10-2006 at 05:08 AM
View Profile Send Email to User Show All Posts | Quote Reply
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42
icon Re: Controlling 'Scrolled' Location of Clicked Item from Combobox List

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

06-10-2006 at 06:12 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : API : Controlling 'Scrolled' Location of Clicked Item from Combobox List
Previous Topic (currently logged on IP or PCName)Next Topic (Keeping Combo Box Dropped Down Even When Programmatically Scrolling) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder