Discussion:
[Lazarus] typo in IDE popup tooltip
AlexeyT via Lazarus
2018-09-21 17:29:31 UTC
Permalink
function  StringToColor( const   S: shortstring ): TColor;
/home/user/lazarus/lcl/graphics.pp(1901,10)
Description
StringToColor
 - given a colour name*like 'Blue*', returns the corresponding colour value

--> fix to 'clBlue' or better to 'clMagenta'
--
Regards,
Alexey
Juha Manninen via Lazarus
2018-09-21 19:01:17 UTC
Permalink
On Fri, Sep 21, 2018 at 8:29 PM AlexeyT via Lazarus
function StringToColor( const S: shortstring ): TColor;
/home/user/lazarus/lcl/graphics.pp(1901,10)
Description
StringToColor
- given a colour name like 'Blue', returns the corresponding colour value
--> fix to 'clBlue' or better to 'clMagenta'
Strangely enough, the "Colors" map does not have 'clMagenta'. It has 'clBlue'.
See const
Colors: array[0..106] of TIdentMapEntry = (...
in graphics.pp line 2349.
Does function StringToColor() work as expected?

Anyway I fixed the documentation to say 'clBlue' in r59118.

Juha
--

Loading...