TColorButton lazarus / 31-LCL ---------------------------------------------------------------------- Eclipticon · 2011-08-14 21:31 Hi, I got serveral TColorButton in a GroupBox ... they neither show up in the tab order nor do they disable as all other components do when MyGroupBox.Enabled is set to False. Are these bugs or is this a misconception on my side? Thanks :-) ---------------------------------------------------------------------- Blaazen · 2011-08-14 22:22 Probably you didn't set their Parent to GroupBox. You can do it by right-click (on ColorButton) -> Change Parent > GroupBox I just tested and it works as expected here, Linux+Qt4. ---------------------------------------------------------------------- Eclipticon · 2011-08-14 22:27 The Parent of all ColorButtons is set, in the hierarchy of the Object Inspector they are also show as belonging to the GroupBox. The problem was observed on WinXP 32bit with Lazarus 0.9.30 ... can anyone confirm? ---------------------------------------------------------------------- Eclipticon · 2011-09-12 17:58 Bump? ---------------------------------------------------------------------- Arbee · 2011-09-12 19:06 Works as expected on a Mac. You'll have to wait a couple of hours before I can try this on a Windows machine. ---------------------------------------------------------------------- Arbee · 2011-09-13 06:59 Tested on Windows.  Works fine. ---------------------------------------------------------------------- Eclipticon · 2011-09-13 07:05 Quote from: Arbee on September 13, 2011, 08:59:15 amTested on Windows.  Works fine. So the TColorButtons receive the focus when you through the components on your form? Very interesting, especially as we use similar OS and Lazarus versions ... ---------------------------------------------------------------------- Arbee · 2011-09-13 07:31 Actuall I was referring to the enable/disable problem.  The TColorbutton does not have a Taborder property AFAIK, so you can't TAB through them. ---------------------------------------------------------------------- Eclipticon · 2011-09-13 08:49 Hi, thanks for clarifying that ... I will create at test project for the Enable problem. Is there any reason why a TColorButton should not be available via Taborder? ---------------------------------------------------------------------- Blaazen · 2011-09-13 10:00 QuoteIs there any reason why a TColorButton should not be available via Taborder? Because TColorButton is derived from TCustomSpeedButton which is derived from TGraphicControl which AFAIK has no focus. ---------------------------------------------------------------------- Eclipticon · 2011-09-13 16:09 Blaazen, I agree with you on the technical reasons why TColorButton can not get the focus. In terms of user experience I think it is a bit stupid to have something that looks like a button in the middle of a dialog but not reachable with the keyboard. However TColorButton seems to be made for use in toolbars, where this behaviour is more acceptable ... ---------------------------------------------------------------------- Eclipticon · 2011-09-13 18:18 This project shows the Enable/Disable problem: 1. While ColorButton1 does not work anymore when disabled via GroupBox1 in FormCreate, it does not *look* disabled. 2. It only changes visually to disabled when Button2 is pressed and ColorButton1 is disabled explicitly. Can anyone confirm? ---------------------------------------------------------------------- Blaazen · 2011-09-13 19:00 I can confirm here Linux+Qt. Please, attach also "project11.lpi" next time. ---------------------------------------------------------------------- Arbee · 2011-09-13 20:16 And I can confirm on a Mac.  You are indeed right ... it only "grays out" when the colorbutton itself gets disabled. ---------------------------------------------------------------------- Eclipticon · 2011-09-13 21:28 Thanks ... would you suggest to file a bug report? If so, which component would one blame, the GroupBox or the ColorButton? ---------------------------------------------------------------------- Blaazen · 2011-09-13 23:44 The same behaviour is when TColorButton or TSpeedButton is placed on TPanel. I don't know if problem is in TCustomSpeedButton or in TWinControl (ancestor of both TPanel and TGroupBox). ---------------------------------------------------------------------- Eclipticon · 2011-09-14 20:59 Filed as 0020247.