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.
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
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.
)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.