How can I determine the right button image for my custom combobox button for the selected desktop motif? [modified]
-
I wrote a custom combobox that uses an image button. However, if the user changes their desktop motif, then the button images on my combobox won't change, which doesn't look very good, expecially if there are any regular drop-down-lists on the page. Is there a way to determine which motif the desktop is using with javascript, vbscript, or something else? An alternative would be to "sample" the color of one or more points in the button area of a regular drop-down-list on a page before the one my combobox is displayed on, then use this information to determine the motif, and have my aspx's code select the right button-set for my combobox when building the page. How can I "sample" the color of a drop-down-list's button? Incidently, I'm using IE6 SP6 with VB.Net 2003 with client-side javascript for my target browser and the development language. Thank you