[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Styled problem


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
>

References:
Styled problemFabien Bodard <gambas.fr@xxxxxxxxx>