Página 1 de 1

Message not found: TChooseColorDlg:RGBTOHTML

Publicado: Mié Dic 22, 2021 2:39 am
por Hurricane
Hi,

fix:

Código: Seleccionar todo

CLASS TChooseColorDlg FROM XChooseColorDlg
PUBLISHED:
   PROPERTY cHtmlColor        INIT "#000000" READ INLINE RGBToHtml( ::nColor ) READONLY
ENDCLASS
as I'm using it in the plugin, I have to instantiate it with another class name.

Note:
I also wanted to start with a color in HTML format, but it just converts from the selection.
Is the documentation wrong?
color.png
color.png (5.64 KiB) Visto 519 veces

Re: Message not found: TChooseColorDlg:RGBTOHTML

Publicado: Mié Dic 22, 2021 11:49 am
por ignacio
Hi,

Indeed there is an error with that property. Try to use this function:

RgbToHtml( <nColor> ) --> cHTMLColor

Regards,

Re: Message not found: TChooseColorDlg:RGBTOHTML

Publicado: Mié Dic 22, 2021 2:41 pm
por Hurricane
naturally and I put a fix.

But I think the documentation has another problem.
The effect of this property is read-only, we cannot initialize the color as we do with nColor.
ignacio escribió: Mié Dic 22, 2021 11:49 am Indeed there is an error with that property. Try to use this function:

RgbToHtml( <nColor> ) --> cHTMLColor