[Gambas-user] Problem on Widget Container Definition
Fabien Bodard
gambas.fr at gmail.com
Fri Sep 6 00:13:35 CEST 2019
Yes it work...
but this is a bug normally the arrange style might not be the base form one
but the one given to the _Container property.
Actually setting a container to _Container change the arrange property of
the given Container ... BUG or Feature ?
Le jeu. 5 sept. 2019 à 21:03, Christof Thalhofer <chrisml at deganius.de> a
écrit :
> Hello Fabien,
>
> Am 05.09.19 um 10:46 schrieb Fabien Bodard:
>
> > Then this is a demo with the problem. I want to understand why the
> > setted container not arrange it's content ...
> >
> > The event Arrange is raised.
>
> Maybe you have to do sth like this?:
>
> Public Sub _New()
> Dim hPanel As Panel
> Dim hMainPanel As Panel
> hMainPanel = New Panel(Me)
> > Me.Arrangement = Arrange.Fill
> HMainPanel.Arrangement = Arrange.Horizontal
>
> HPanel = New Panel(hMainPanel)
> HPanel.Expand = True
> HPanel.Background = Color.Green
>
> HPanel = New Panel(hMainPanel) As "Container"
> HPanel.Expand = True
> HPanel.Arrangement = Arrange.Horizontal
>
> Me._Container = HPanel
> End
>
>
> Alles Gute
>
> Christof Thalhofer
>
> --
> Dies ist keine Signatur
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
--
Fabien Bodard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190906/f06e43b7/attachment.html>
More information about the User
mailing list