[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Styled problem
[Thread Prev] | [Thread Next]
- Subject: Re: Styled problem
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Wed, 3 Sep 2025 16:43:30 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
I think i have encountered this issue and used the Style.class properties. Style.ScrollbarSize Style.ScrollbarSpacing Style.FrameWidth (if a border exists) If the ScrollHeight is larger than Height then a bar is visible. https://gambaswiki.org/wiki/comp/gb.qt4/style something like this... Dim iRightEdge As Integer With GridView1 iRightEdge = .Width - If(.Border <> 0, Style.FrameWidth * 2, 0) If .ScrollHeight > .Height Then iRightEdge -= Style.ScrollbarSize + Style.ScrollbarSpacing End With Print iRightEdge Respects BruceS On Wed, 3 Sept 2025 at 16:04, Fabien Bodard <gambas.fr@xxxxxxxxx> wrote: > In the case of styled mode border > > the gridview Cell.X is moved on the left ... How can I know the value to > compensate this misalignment dynamiquely > > -- > Fabien Bodard >
Styled problem | Fabien Bodard <gambas.fr@xxxxxxxxx> |