TToggleBox with glyph? lazarus / 31-LCL ---------------------------------------------------------------------- Eclipticon · 2014-08-22 16:43 Hi, is there a way to assign a glyph/icon to a TToggleBox? Alternatively, what would be the easiest to draw it myself? It is kind of important to me to stick to the look and feel of the different Windows versions I am developing for ... I don't want these toggle boxes to look much different than buttons, for example. Thanks! ---------------------------------------------------------------------- Blaazen · 2014-08-22 17:01 TToggleBox does not support it but you can try my EC-Controls. There is TECSpeedBtn which allows it. It is theme-drawn (just like TSpeedBtn) and you can have different image for pushed and non-pushed state. You only need to set Delay to -1 (0 is normal button; -1 toggle box; >0 is delay button). Then you can select from simple built-in glyphs (GlyphDesign and GlyphDesignChecked) or assign Images (TImageList) and set ImageIndex and ImageIndexChecked. BTW I'm working on new version where multi-line Caption will be allowed. It will be in the next release. ---------------------------------------------------------------------- Eclipticon · 2014-08-22 19:32 Hi Blazen, thanks for your suggestions. Besides license issues (I am planning to use these controls in proprietary, statically linked) software, I have problems compiling: It could not override .GetSpace and .GetSpaceAround, because they are not declared as virtual in Controls. Best, Eclipticon. ---------------------------------------------------------------------- Blaazen · 2014-08-22 19:48 QuoteBesides license issues ...LGPL is not enough? After all, licence can be changed. QuoteI have problems compiling: It could not override ... It's very easy to fix. It's described in attached README.txt. It is already done in Lazarus trunk, I guess you have some older version. ---------------------------------------------------------------------- Eclipticon · 2014-08-22 19:51 I would like to add - BEAUTIFUL controls, I particularly like the ECSwitch! ---------------------------------------------------------------------- Blaazen · 2014-08-22 20:04 QuoteI particularly like the ECSwitch!I saw similar component in Gnome3 (Gnome Shell) so I implemented it for Lazarus too.