Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 15805, OWL UpDown Button Gadget

by Luigi Bianchi Email: Anonymous


A button gadget that shows two different glyphs depending on its up/down state
Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 4.0  to 5.0 13 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Wed, 04 Apr 2001 14:07:22 GMT
Originally uploaded on Wed, 04 Apr 2001 14:07:22 GMT
Description
I have never found a simple OWL UpDown Button Gadget, that is a button that you can put on a toolbar and that displays different glyphs depending on its Up/Down state. It is however simple to build such a class: it is sufficient to derive it from TButtonGadget and ovverride two virtual functions. Just few notes about the constructor:

TUpDownButtonGadget::TUpDownButtonGadget(
TResId bmpResIdUp,
TResId bmpResIdDown,
int id,
TState state = Up,
TModule* res_mod = ::Module)

bmpResIdUp and bmpResIdDown are the TResIds of the Up and Down glyphs, respectively, id is the Command Id associated to the button, state is the initial button State (defaults to Up) and res_mod is the TModule* in which the glyphs are stored. For the other things, you can use it as a TButtonGadget and put it on your toolbars. It's so easy that I don't provide any example...

For more information, see http://www.luigibianchi.com/owl.htm

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03