osx fpc & lazarus svn QT x64
I wanna enter this value $CCD148 from Object inspector but I can not, How to enter hex value to colour property from object inspector?
Mailing lists / lazarus / 2015-02
How to edit color value in Object inspector
7 messages · 4 people · –
- FFreeMan 3
- JJuuS 2
- MMattias Gaertner 1
- Zzeljko 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
FreeMan wroteosx fpc & lazarus svn QT x64 I wanna enter this value $CCD148 from Object inspector but I can not, How to enter hex value to colour property from object inspector?
You can enter such value in color dialog of that combobox, you cannot enter it directly.
zeljko
Problem is color dialog has NOT edit for HEX value on osx yosemite, every where is graphic selection one decimal edit place. Select any color from this dialog, OI show HEX value.
zeljko wroteYou can enter such value in color dialog of that combobox, you cannot enter it directly. zeljko
You can enter such value in color dialog of that combobox, you cannot enter it directly.…
I also found this confusing a bit ago when I wanted to set colors.
I resorted to loading a color picker, tuning the colors I wanted and storing those values later to be used in a case statement.
The problem was in the Object Inspector one cannot put value, one must use the drop down color picker. In the color picker one can only put a color in the form of #AABBCC. But what comes back from the Picker is a value in the form $00CCBBAA.
What one would want is to have the picker allow input that is the same as what as what the picker outputs, ja?
I just worked around it, but since it seems to be a confusion for more than just myself, I throw in these two cents... ;-)
zeljko wrote 16 lines
Show quoted text 5 lines
The color picker is the system color picker. It may use HTML notation, which uses RGB or RRGGBB.
TColor uses BBGGRR.
What one would want is to have the picker allow input that is the same as what as what the picker outputs, ja?
You can override the TColorPropertyEditor.
Either change the shown value to your system color picker, or implement your own color picker.
Mattias
Ha! I should have known that!
Lazarus/pascal is infinitely customizable. Been out of the pascal environment for so long I'm forgetting the basics.
Thanks Mattias, I will look into the override...
BTW, super job. You are all my heroes.
Mattias Gaertner wrote 29 lines
On Sat, 14 Feb 2015 13:25:03 +0100 The color picker is the system color picker. It may…
Onalt?l?k renk no. mean " Hexadecimal color number" I wrote in there "CCD148" then click Ok. It coverted that number ? after click 3dot button. Is number is same? and only one this place editable in color picker
Mattias Gaertner wroteThe color picker is the system color picker. It may use HTML notation, which uses RGB or RRGGBB. TColor uses BBGGRR.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150214/6b2a0d52/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: eieedfji.
Type: image/jpeg
Size: 66537 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150214/6b2a0d52/attachment-0001.jpe>
