[Lazarus] ColotToRGB in GTK apps

Valdas Jank┼źnas skroblas at erdves.lt
Sun Jul 27 14:26:34 CEST 2008


Hello,

   I found solution: in unit GtkProc is procedure UpdateSysColorMap that 
updates SysColorMap array (from where ColorToRGB gets RGB values of 
system colors), but functionality of this procedure is disabled 
("NewSysColors" is not defined). So i writed own procedure that based on 
code of mentioned procedure. Now this procedure I call in OnCreate and 
then ColorToRGB returns correct values.

-- 
   Valdas Jank┼źnas



More information about the Lazarus mailing list