[Lazarus] Does using GtkFrame in LCL make sense?

Henry Vermaak henry.vermaak at gmail.com
Fri Jul 1 16:17:14 CEST 2011


On 01/07/11 15:09, Henry Vermaak wrote:
> On 01/07/11 14:44, Henry Vermaak wrote:
>> 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.
>
> Actually, it doesn't make a difference. The thing that fooled me is that
> my panels on debian are bigger than yours on ubuntu.

That said, changing the frame to gtk_alignment_new(0, 0, 1, 1) seems to 
work for me.  What does it look like on Ubuntu?

Henry




More information about the Lazarus mailing list