Results 1 to 13 of 13

Thread: What should I do with these Buttons...?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300

    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?

  2. #2
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335
    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/

  3. #3
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    Hey, bloodeye, very cool avatar
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  4. #4
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    You can paint your own commandbutton using DrawFrameControl. Check it out on MSDN. If you can't, ask. i'll explain.
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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?

  6. #6
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    It depends, from what source do you want to extract an icon (rescource file/.ico file/picturebox)?
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Well seeing as I would have a few icons, I would probably go the resource file route.

  8. #8
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    I would use an imagelist.
    Use Imagelist_draw with the iml_transparant const.
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  9. #9

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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?

  10. #10
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    You could use pictureboxes and their click event...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  11. #11
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    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)
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Hmmm....Well thanks for all the ideas. I'll play around with it, and see what I can come up with.

  13. #13

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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
  •  



Click Here to Expand Forum to Full Width