PDA

Click to See Complete Forum and Search --> : Icons and buttons


thebug
Feb 26th, 2001, 06:29 PM
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+

Feb 27th, 2001, 12:35 PM
There is a demo floating around VBWorld somewhere that will do that, I think.

Mad Compie
Feb 27th, 2001, 01:29 PM
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

tomcatexodus
Feb 27th, 2001, 10:24 PM
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:confused: explanation helps :D...

DarkJedi9
Mar 3rd, 2001, 09:57 PM
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.