[Gambas-user] Problem on Widget Container Definition
Christof Thalhofer
chrisml at deganius.de
Thu Sep 5 21:02:39 CEST 2019
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190905/7faad806/attachment.sig>
More information about the User
mailing list