[Lazarus] Does using GtkFrame in LCL make sense?

Henry Vermaak henry.vermaak at gmail.com
Fri Jul 1 15:44:13 CEST 2011


On 01/07/11 13:17, Max Vlasov wrote:
> Trying to solve the problem, I ended up with the following replacement
> in the TGtk2WSCustomPanel.CreateHandle
>
> { -------- Before }
>
>    Frame := gtk_frame_new(nil);
>    gtk_frame_set_shadow_type(PGtkFrame(Frame),
>      BorderStyleShadowMap[TCustomControl(AWinControl).BorderStyle]);

gtk_container_set_border_width(PGtkContainer(Frame), 0) here seems to 
make it better.

Henry




More information about the Lazarus mailing list