In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Message not found: TChooseColorDlg:RGBTOHTML

Xailer professional forum in English
Responder
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

Message not found: TChooseColorDlg:RGBTOHTML

Mensaje 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 472 veces
Developments | Trainings | Projects
Site | E-mail | Messenger | YouTube
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9253
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Message not found: TChooseColorDlg:RGBTOHTML

Mensaje por ignacio »

Hi,

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

RgbToHtml( <nColor> ) --> cHTMLColor

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
Hurricane
Mensajes: 262
Registrado: Mar Mar 24, 2015 10:21 am
Ubicación: Brasil
Contactar:

Re: Message not found: TChooseColorDlg:RGBTOHTML

Mensaje 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
Responder