View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009285 | Lazarus | Other | public | 2007-07-17 11:06 | 2016-10-14 12:44 |
Reporter | Alexander Desyatnichenko (10) | Assigned To | Vincent Snijders | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.9.22 | ||||
Summary | 0009285: Button.Color | ||||
Description | Can not set Button.Color in Form using Lazarus IDE. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | 1.4 | ||||
Widgetset | Win32/Win64 | ||||
Attached Files |
|
duplicate of | 0001188 | closed | Vincent Snijders | Color property of tbutton doesn't work. |
related to | 0023309 | resolved | wp | all buttons' font color doesn't change and stays black |
2007-07-17 11:06
|
|
|
AFAIK, changing the color of a button on windows can only be done if you use onwnerdrawn buttons. I don't that is worth the trouble. For now this is left open for the future and probably 'not fixable' or 'won't fix' unless somebody provides a way of changing a buttons color without making it ownerdrawn. |
|
I think no such thing is possible. Reading further even Qt doesn't allow this too: http://lists.trolltech.com/qt-interest/2003-07/thread01391-0.html For consistency I propose to unpublish the color property for TButton, define it should not have a color other then the default theme one and mark this as fixed (in the sense that having a published color property that doesn't work was a bug). |
|
TBitBtn and TSpeedButton also have the same problem. TSpeedButton is owner drawn, but themed. I'm not sure if it could have a color property. |
|
It's a bug in LCL and needs to be fixed! If not, it's a serious limitation on LCL's part and is not good. It is possible to do with Qt as well. Why does Kylix 3 then allow you to change the Color property? It's a published property of TControl, so all decendants should have support for it. See the attached screenshot of Kylix 3 in action. |
2008-02-01 08:01
|
|
|
Kylix = qt = library that draw widgets itself Win32 = library that also has some mids about widget drawing Why LCL should invent hacks to force win32 draw color buttons? If win32 doesnot want to do that why LCL should have ability to override desinged by ms devels way of button drawing? LCL is library of native widgets = library that uses abilities of underlying libraries. If they (win32 or other) doesnot support something then LCL should not invent own ways. My opinion - this issue should be closed. |
|
Agree. |
|
@Paul Ok, so LCL uses native widgets - I get that. Well, Qt is supported widget set of LCL. So Qt should in all respects be consider 'native'. So now, because Win32 doesn't allow Button.Color, Qt may not use Button.Color either! That's a bit unfair. The LCL now limits developers only to what Win32 can do! What happened to LCL being cross-platform? What about the features of other underlying native widget sets? Is Win32 the controlling widget set for LCL. If Win32 doesn't support something, neither may the other widget sets? |
|
For now result file in win32 look like here: http://files.freesoft.ru/rep/672758/logox-win.exe ( http://freesoft.ru/?id=672758 ) But in CentOS it look better (like in kylix3_button): http://files.freesoft.ru/rep/672769/logox-linux-gtk-bin.zip ( http://freesoft.ru/?id=672769 ) |
|
Button.Color has been published. It has been marked as a restricted property in the object inspector for Carbon and win32. |
Date Modified | Username | Field | Change |
---|---|---|---|
2007-07-17 11:06 | Alexander Desyatnichenko (10) | New Issue | |
2007-07-17 11:06 | Alexander Desyatnichenko (10) | File Added: logoxunit1.7z | |
2007-07-17 11:06 | Alexander Desyatnichenko (10) | Widgetset | => Win32 |
2007-07-17 14:05 | Vincent Snijders | LazTarget | => 1.0 |
2007-07-17 14:05 | Vincent Snijders | Status | new => acknowledged |
2007-07-18 07:45 | Felipe Monteiro de Carvalho | Relationship added | duplicate of 0001188 |
2007-07-18 22:53 | Vincent Snijders | LazTarget | 1.0 => post 1.2 |
2007-07-18 22:53 | Vincent Snijders | Note Added: 0013768 | |
2008-01-31 13:15 | Felipe Monteiro de Carvalho | Note Added: 0017542 | |
2008-01-31 13:21 | Felipe Monteiro de Carvalho | Note Added: 0017543 | |
2008-02-01 08:01 | Graeme Geldenhuys | Note Added: 0017553 | |
2008-02-01 08:01 | Graeme Geldenhuys | File Added: kylix3_button_color.png | |
2008-02-01 17:08 | Paul Ishenin | Note Added: 0017559 | |
2008-02-01 18:07 | Christian | Note Added: 0017560 | |
2008-02-07 09:46 | Graeme Geldenhuys | Note Added: 0017629 | |
2008-02-28 13:25 | Alexander Desyatnichenko (10) | Note Added: 0017998 | |
2009-05-06 11:36 | Vincent Snijders | Status | acknowledged => resolved |
2009-05-06 11:36 | Vincent Snijders | Resolution | open => fixed |
2009-05-06 11:36 | Vincent Snijders | Assigned To | => Vincent Snijders |
2009-05-06 11:36 | Vincent Snijders | Note Added: 0027372 | |
2009-10-23 00:39 | Marc Weustink | Status | resolved => closed |
2013-09-03 12:07 | Martin Friebe | LazTarget | post 1.2 => 1.4 |
2016-10-14 12:44 | Juha Manninen | Relationship added | related to 0023309 |