[Gambas-user] Weird display bug

Grahame White grahame at ...457...
Sat Jun 5 22:12:11 CEST 2004


> I don't have your problem in my KDE 3.2 box.

Hmm, that does make it more difficult to fix :/

>
> BUT BE CAREFUL!
>
> Form.Width and Form.Height include the window decorations. The size of
> window decorations is guessed by Qt, because there is no way to get them
> on X11.
>
> You must always include the size of the decorations when computing a
> form size, by using Form.Width - Form.ClientW and Form.Height -
> Form.ClientH
>
> Form.ClientW returns the width on the window client area. Form.ClientH
> its height.
>
> So you must write:
>
> FRules.Height = 8 + lblHeading.Height + 8 + pnlRule3.Height + 8 +
> cmdCancel.height + FRules.Height - FRules.ClientH.

Good point, I hadn't thought of that... I'll include some fixes in the next 
version.

Thanks

Grahame




More information about the User mailing list