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

Fwd: Styled problem


---------- Forwarded message ---------
De : Fabien Bodard <gambas.fr@xxxxxxxxx>
Date: jeu. 4 sept. 2025 à 10:01
Subject: Re: Styled problem
To: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>


Public Sub Form_Open()

   Style.Shape = Style.Default
  Style.Flat = True

  GridView1.Rows.Count = 10
  GridView1.Columns.Count = 2

  'j'embarque le textview dans le conteneur du gridview
  TextBox1.Reparent(GridView1.View)

End

Public Sub GridView1_Arrange()
With GridView1[0, 1]
  TextBox1.Move(.X, .Y, .W, .H)
End With

End

I think I have understand it
I put textView in the gridview internal container (for simplicity) but when
I get the Cell.X/Y value they might be already compensated from the style
padding offset.
So the value is applied twice.
If I put the textbox the same container as the gridview object the offset
is well managed.

Bad programming way... my bad.

Sorry for the noise.

Fabien

Le jeu. 4 sept. 2025 à 03:12, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> a écrit :

> Le 03/09/2025 à 17:03, Fabien Bodard a écrit :
> > 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
>
> You mean on the right, not on the left?
>
> As usual, send a project that reproduces the bug.
>
> --
> Benoît Minisini.
>


-- 
Fabien Bodard


-- 
Fabien Bodard

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