08-03-2005 03:34 AM
08-03-2005 04:26 AM
It is actually fairly easy - customize the dialog control, switch to Edit mode and copy the image of the control.
Then, create a new control, place a combobox in it and switch to edit mode.
Replace the arrow image with the image in the clipboard and resize it to be the same size.
A few more tweaks (move to front, make sure things are the right size) and you're done.
08-03-2005 10:03 AM
08-03-2005 10:56 AM
Nice...
It's interesting. On my computer, the combobox has my dialog graphics and not yours.
Is this because you used my example or because LV has some special way of going around the fact that we're copying images (I assume the former)?
If you figured out how control editing works, I'm impressed. Some controls, when edited, start moving the bounds of certain elements of the control and don't allow you to play with it. That part I haven't figured out.
BTW, XP's paint has an option to save images as PNG, GIF or JPG, each of which is much much smaller than BMP.
08-03-2005 01:28 PM
08-03-2005 02:11 PM
This is what your control looks like in my computer, which is the way my dialog controls look (I use the classic look on XP). I would think that if you copied the image from your computer (the blue one), I would see the same one. I guess there is some deeper darker stuff going on.
08-04-2005 04:48 AM
Oh - I thought you were only talking about the color of the control.
So I guess, in fact if I insisted on having controls appearing like the dialog controls (in disregard to what the native PC settings are) I wouldn't even be able to do so, by making my own customized controls using the images from the dialig controls. Its so weird...! But hey on the upside is the fact, that I actually created a combo box dialog control, that works exactly like the rest of the LV's dialog controls.
Kim Stenbo