DELPHI component TCMBtn is a button like in MS Internet Explorer 3.0.
Why just another Internet Explorer button component? I've examined three existing
versions, but none of them met my requirements. So I created this component with
the following main advantages:
- inherited property Caption (is therefore automatically supplied
at design time with CMBtn1, CMBtn2 and so on)
- caption can contain an ampersand ("&") followed by accelerator char
- WordWrap property for Caption
- automatic cutting of Caption with trailing '...' if needed
- HelpContext property
- PopupMenu property with selectable mouse button (left like in
Internet Explorer or right like in other DELPHI components)
- no problems when calling windows help at OnClick event
- no problems when help window is active and mouse leaves button
- can be positioned on TPanel
- ALT F4 (to close window) works
- button layout control as known from TBitBtn
- uses three glyphs for the three possible states
1. enabled with mouse over button
2. disabled (with or without mouse)
3. enabled without mouse
You can assign a single glyph bitmap to the glyph property, the two additional
glyphs are created *AND* stored automatically! You can save the created 3-glyph-
bitmap and edit it!
Christian Maas (
[email protected])