Suggestions Needed. I'm trying to avoid using a toolbar, although I have thought about using a API toolbar. Anyone have code for that?
What else can I do with a command button, or maybe you have a suggestion for a 3rd party command button?
Printable View
Suggestions Needed. I'm trying to avoid using a toolbar, although I have thought about using a API toolbar. Anyone have code for that?
What else can I do with a command button, or maybe you have a suggestion for a 3rd party command button?
you can always mess around with the picture box
Hey, bloodeye, very cool avatar :p
You can paint your own commandbutton using DrawFrameControl. Check it out on MSDN. If you can't, ask. i'll explain.
Xa0z -
Thanks for the idea of DrawFrameControl API. I'm looking into it now.
I found a couple of nice links:
http://www.vbcodemagician.dk/tips/gf...amecontrol.htm
http://www.vbcodemagician.dk/tips/gfx_drawedge.htm
With the first link above (drawframecontrol link), the code draws the control. I don't see any code for drawing a "icon" on a button. How difficult is this to do?
It depends, from what source do you want to extract an icon (rescource file/.ico file/picturebox)?
Well seeing as I would have a few icons, I would probably go the resource file route. ;)
I would use an imagelist.
Use Imagelist_draw with the iml_transparant const.
Well...If I use an ImageList, then I may as well use a Toolbar. The whole point of me doing this, was to avoid having to use the big "MSCOMCTL.OCX".
What's the process of drawing an icon on a DrawFrameControl button?
You could use pictureboxes and their click event...
Ah, I got your point. But if you then just use files, it'll work too.
picDummy.picture = loadpicture(path)
bitblt frm.hdc,xpos, ypos, width, height, picDummy.hdc,0,0,paint)
Hmmm....Well thanks for all the ideas. I'll play around with it, and see what I can come up with. :)
For anyone who's interested. I found this link.....I think this is what I'm after:
http://www.adamdawes.com/programming...owsimages.html