On Sun, 13 Nov 2005 11:00:02 +0100 darekM <[EMAIL PROTECTED]> wrote: > darekM napisa__(a): > I forget about patch
Thanks. But I fear this has some big drawbacks: AFAIK gtk_widget_unrealize destroys the internal gtk window. 1. This is very slow and ReleaseDC is used often. 2. ReleaseDC can only use gtk_widget_unrealize, when no other DC is using this widget. Please never use writeln. Always use debugln. Mattias > > > > >> Hi > >> I try to investigate why setcolor in form don't work (in Linux+GTK) > >> in simple program > > > > > > > > I found why its not work, but there are many changes in source, > > all diff in mail > > > > I've added gtk_widget_unrealize to ReleaseDC (its cause assertion > > error gtk_widget_get_parent, I know where bun i don't know how its > > repair) > > > > > > > > remove set of fPixelsPerInch in CreateWND , change it to > > GetPixelsPerInch (has to change every invoke off fPixelsPerInch to > > property > > > > > > remove UpdateWidgetStyleOfControl from event realize and realizeafter > > (they fired and do nothing) > > > > I don't know gtk too much, I only try > > > > Regards > > > > Darek > > > > > > _________________________________________________________________ > > To unsubscribe: mail [EMAIL PROTECTED] with > > "unsubscribe" as the Subject > > archives at http://www.lazarus.freepascal.org/mailarchives > > > > > _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
