The code works in Windows and in Qt in Mac OS X. Gtk2 has a problem that it does not allow setting the region of a control before the expose event. So basically setting the region in the event OnCreate will not do anything. I had this problem in my application and I think that the only thing that worked for me was using a timer with interval 1. It sucks, but well, that's Gtk2 =)
-- Felipe Monteiro de Carvalho -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
