Results 1 to 5 of 5

Thread: Icons and buttons

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2000
    Posts
    22
    Is it possible to associate an icon to a button aligning the icon to the left of the button's caption? i.e. is it possible to have a button like this: [<icon> OK].
    And does anybody know if there's a way to associate an icon to a menu item? Thank you very much!

    +thebug+

  2. #2
    Guest
    There is a demo floating around VBWorld somewhere that will do that, I think.

  3. #3
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Do you mean the Borland C++ style buttons?

    This link gives you the answer about a user-defined menu with bitmaps:
    http://www.vbthunder.com/source/menu/ownmenu.htm

  4. #4
    Hyperactive Member tomcatexodus's Avatar
    Join Date
    Feb 2001
    Posts
    372

    Talking Here's how.. (well, it worked for me...)

    Here's how I make Borland style command buttons...

    Go into the components menu, with all the additional controls, etc... and look for the "Microsoft Forms 2.0 Object Library" control library. Add that to your toolbox and there should be a bunch of controls added in. One of em' should be a command-button control, but will look different when you put it in, with a bigger shadow, but will have many more properties. You'll need the "Picture" property and the "PicturePosition" property. Just add in the icon/pic you want and then manipulate the postion with the picturepostion property. If you don't have the MS Forms Library 2.0 then... well I dunno.... As for the menu pics, you can find some examples at http://www.basicguru.com. I think you'll find em there, just look through their links, I forget...
    I hope this LENGHTHY explanation helps ...
    IWS

  5. #5
    Lively Member
    Join Date
    Jun 2000
    Posts
    124
    The graphical menu thing can be answered in an API article by I think Karl Moore. It's like four APIs and five lines of code. Just go to the API section and poke around.
    On Error Resume Screaming...

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