Re: [Lazarus] How to edit color value in Object inspector

2015-02-14 Thread JuuS
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... ;-)



On 02/13/2015 08:09 AM, zeljko wrote:
 On 02/12/2015 06:59 PM, FreeMan wrote:
 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?
 
 You can enter such value in color dialog of that combobox, you cannot
 enter it directly.
 
 zeljko
 
 
 -- 
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to edit color value in Object inspector

2015-02-14 Thread Mattias Gaertner
On Sat, 14 Feb 2015 13:25:03 +0100
JuuS j...@mykolab.ch wrote:

[...]
 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.

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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to edit color value in Object inspector

2015-02-14 Thread FreeMan


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


On 14.02.2015 14:33, Mattias Gaertner wrote:

The color picker is the system color picker. It may use HTML notation,
which uses RGB or RRGGBB.
TColor uses BBGGRR.


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to edit color value in Object inspector

2015-02-14 Thread JuuS
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.


On 02/14/2015 01:33 PM, Mattias Gaertner wrote:
 On Sat, 14 Feb 2015 13:25:03 +0100
 JuuS j...@mykolab.ch wrote:
 
 [...]
 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.
 
 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
 
 --
 ___
 Lazarus mailing list
 Lazarus@lists.lazarus.freepascal.org
 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to edit color value in Object inspector

2015-02-13 Thread FreeMan
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.


On 13.02.2015 09:09, zeljko wrote:
You can enter such value in color dialog of that combobox, you cannot 
enter it directly.


zeljko 



--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] How to edit color value in Object inspector

2015-02-12 Thread FreeMan

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?


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to edit color value in Object inspector

2015-02-12 Thread zeljko

On 02/12/2015 06:59 PM, FreeMan wrote:

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?


You can enter such value in color dialog of that combobox, you cannot 
enter it directly.


zeljko


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus