[Gambas-user] getting dataview to expand??

Fabien Bodard gambas.fr at ...626...
Wed Aug 29 20:37:00 CEST 2012


2012/8/29 Fabien Bodard <gambas.fr at ...626...>:
> HARRRRRRRRRGGHHHHHHHHHH !!!
>
>
> WHAT ?
>
>
> The dataview need to be in a datasource to wor ... but a data source
> is a container .
>
> THis container Have a arrangement property...
>
> The arrangement autoresize his content ... it's like in html.
>
> SO for you ...
>
> In your form you put a datasource and in it a dataview then on the
> bottom in the form you put for example a button.
>
>
> set the form arrangement at vertical, the expand property of the
> datasource at true, and the arrangement of the datasource at fill
> set spacing of form at true and padding at true.
>
> or you can define margin in pixel.
>
> taddda...
>
>
> THis is oe of the power of gambas ... normally you will never (or just
> in rare case )  have to use the _resize event.
>
> Just play to try with containers (vbox,hbox,panel, vpanel,hpanel) and
> properties (ignore, expand, arrangement, margin, padding, spacing),
> put in it  diffrent object or objects with different colors to
> understand how it work... it is really powerfull ... all the ide is
> based on it... and all the graphic components too .
>
>
>
>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demoarrangement-0.0.1.tar.gz
Type: application/x-gzip
Size: 4659 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120829/38ccc1f3/attachment.bin>


More information about the User mailing list