[Gambas-user] getting dataview to expand??
Fabien Bodard
gambas.fr at ...626...
Thu Aug 30 11:47:33 CEST 2012
Yes you can
Put the button in a hbox and for example add a panel on the left on it and
set the expand property of the panel to true. You will have a right aligned
button. You have tools, then it's just matter of imagination
Le 29 août 2012 23:10, "rocko" <sunblaster5 at ...626...> a écrit :
> On Wed, 2012-08-29 at 20:37 +0200, Fabien Bodard wrote:
> > 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
>
> Thanks Fabien that's about 90% what I want.
> The 10% I dont want is the Button fills up entire bottom/vertical space,
> depending on which property I have the arraignment set to.
>
> Can I add a container for the button so It doesn't expand ??
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________ Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> --
> rocko <sunblaster5 at ...626...>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list