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 (Using Access with VB6)Next Topic (SQL SERVER 2000: SQL STMT SELECT LIKE CHR() ERROR) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Taking out Limitation of Image Combo
Poster Message
matt_1ca
Level: Scholar

Registered: 27-03-2005
Posts: 42

icon Taking out Limitation of Image Combo

Wondering if someone knows the easiest way to add events to the individual images in an "ImageCombo" with multiple images associated with each comboitem.

For example many have seen the elegant looking drop downs used by AutoCAD in its layer toolbar. I am not the only one impressed with it, in fact my boss has recently been obsessed with it and want us to also put images in most many of our combo boxes.

It is starting to look to me like it is not that easy first there is the problem of attaching events to the individual images for example in AutoCAD's layer toolbar every image when clicked does a different toggle action depending on what button and what layer corresponds to it. There is the lightbulb icon that corresponds to Layer ON/OFF, the sun image to correspond to Thaw or Freeze etc. Another potential
challenge is that of inserting more than two images corresponding to every comboitem. Currently the ImageCombo
supports only 2 images per combo item (from my understanding of the documentation at least). The solution would be difficult to say the least with the current knowledge I have to wit :

1. Have two or more image combo partly overlap each other
to take out the the limitation of having only two image per
comboitem

2. Make the two comboboxes act in unison using a
dropdown event.

For solving the event trigger problem for images corresponding to each comboitem:

1. Calculate exact location of mouse when the dropdown
event is triggered, and user starts to click the images.

2. Intercept low level Window Message mouse click and
trigger the necessary function or routines.

Realizing the difficulty, I tried using LOAD command from VB
to create dynamic controls which I thought at first should work -- until I tried calling the combo drop down event which covered all the control arrays I have generated programmatically.

As you can see my second workaround failed and my first workaround would be difficult --- and I am saying to myself, there's got to be an easy way to do this -- but honestly right now I am stumped

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

Matt


[Edited by matt_1ca on 24-09-2006 at 04:36 AM GMT]

[Edited by matt_1ca on 24-09-2006 at 04:36 AM GMT]

23-09-2006 at 10:58 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : Taking out Limitation of Image Combo
Previous Topic (Using Access with VB6)Next Topic (SQL SERVER 2000: SQL STMT SELECT LIKE CHR() ERROR) 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