|
-
Nov 4th, 2001, 10:11 AM
#1
Thread Starter
Frenzied Member
What should I do with these Buttons...?
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?
-
Nov 4th, 2001, 10:22 AM
#2
Frenzied Member
you can always mess around with the picture box
- JayWare
Live to love. Not to Hate
Im to busy to have a site. But I got one and still working on it.
http://dre3k.net/
-
Nov 4th, 2001, 10:24 AM
#3
Hyperactive Member
Hey, bloodeye, very cool avatar
-
Nov 4th, 2001, 10:26 AM
#4
Hyperactive Member
You can paint your own commandbutton using DrawFrameControl. Check it out on MSDN. If you can't, ask. i'll explain.
-
Nov 4th, 2001, 11:39 AM
#5
Thread Starter
Frenzied Member
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?
-
Nov 4th, 2001, 11:41 AM
#6
Hyperactive Member
It depends, from what source do you want to extract an icon (rescource file/.ico file/picturebox)?
-
Nov 4th, 2001, 11:45 AM
#7
Thread Starter
Frenzied Member
Well seeing as I would have a few icons, I would probably go the resource file route.
-
Nov 4th, 2001, 12:30 PM
#8
Hyperactive Member
I would use an imagelist.
Use Imagelist_draw with the iml_transparant const.
-
Nov 4th, 2001, 12:45 PM
#9
Thread Starter
Frenzied Member
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?
-
Nov 4th, 2001, 12:46 PM
#10
PowerPoster
Well
You could use pictureboxes and their click event...
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 4th, 2001, 12:53 PM
#11
Hyperactive Member
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)
-
Nov 4th, 2001, 01:03 PM
#12
Thread Starter
Frenzied Member
Hmmm....Well thanks for all the ideas. I'll play around with it, and see what I can come up with.
-
Nov 4th, 2001, 01:20 PM
#13
Thread Starter
Frenzied Member
For anyone who's interested. I found this link.....I think this is what I'm after:
http://www.adamdawes.com/programming...owsimages.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|