[Lazarus] typo in IDE popup tooltip

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] typo in IDE popup tooltip

Free Pascal - Lazarus mailing list

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

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] typo in IDE popup tooltip

Free Pascal - Lazarus mailing list
On Fri, Sep 21, 2018 at 8:29 PM AlexeyT via Lazarus
<[hidden email]> wrote:
> 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
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus