I have a segment fault error when setting face using onbeforeUpdate event? Ex: if ainfo.instance.classname='trichbutton' then trichbutton(ainfo.instance).facemouse.template:=tcustomface(f_buttonmouse).template;
________________________________ De : mohamed hamza <[email protected]> Envoyé : vendredi 30 novembre 2018 13:53 À : General list for MSEide+MSEgui Objet : Re: [MSEide-MSEgui-talk] About Color thank you for your lighting. Med ________________________________ De : Graeme Geldenhuys <[email protected]> Envoyé : vendredi 30 novembre 2018 11:02 À : [email protected] Objet : Re: [MSEide-MSEgui-talk] About Color On 2018-11-30 9:09 a.m., mohamed hamza wrote: > All I know is that msegraphutils defines the colors in HEX ( $n..n). FPC, Lazarus LCL and fpGUI does the same - in the frameworks and application code, hex values are always used for colors. My comment was relating to when such values or properties are streamed to a file. MSEgui is in the same boat. In this situation, the color values are then persisted as integer values. See MSEgui's stat files, FPC's ini output, Lazarus's lfm files etc as examples of what I mean. Other language frameworks tend to save color values as individual RGB channel values, or as a large single hex value. For example, let look at Java... ====================================================== import java.awt.Color; public class Test { public static void main(String[] args) { Color c = Color.CYAN; System.out.println(c.toString()); } } ====================================================== Output: > java Test java.awt.Color[r=0,g=255,b=255] FPC and Delphi based applications would output the value 65535 (if it used RRGGBB format) or 16776960 (if it used BBGGRR format). Of all these examples, I know which format I find easier to read and understand. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
_______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

