Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOWTO: Dropdown Buttons 1

Status
Not open for further replies.

sqef

IS-IT--Management
Aug 20, 2001
3
IN
Hi,

I was wondering how to come-up with dropdown buttons (flat button with hover & dropdown menu) using VB6 & API. Eg: Mail button on IE's standard buttons toolbar.

Any help would be great!
 
Hi,

Goto your components (project menu) window and select Microsoft Windows Common Controls 6.0.

2.In you toolbox, select the toolbar control (drop it on form)

3.Click the buttons tab, click "Insert button"
4.Change Style to tbrDropdown
5.Click "Insert ButtonMenu" and add the drop down options

Hope that's what u meant.
 
Thanks. Is there a way to do the same without using the Toolbar Control?
 
Draw the buttons (up and down state) yourself (or pinch them from somewhere) and place both buttons on your form as images. Hide the down-state image. In the up-image's onMouseDown event, put image1.picture=image2.picture which will swap the up-state picture for the down-state picture. You can then add the reverse code in the onMouseUp event.
:eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top