[Gambas-user] Re-2: Form.resize event

Fabien Bodard gambas.fr at ...626...
Tue Oct 2 21:55:55 CEST 2007


u?
in gambas 2 ?

the minimum size is the size defined at the design for a resizable form

it's automatic


2007/9/28, jose julio vidal <jj at ...1636...>:
>
> the code:
>
> ' Gambas class file
>
>
> PRIVATE min_height AS Integer = CInt(ME.Height)
> PRIVATE min_width AS Integer = CInt(ME.Width)
>
>
> PUBLIC SUB Form_Open()
>
> Label2.Width = min_width / 2
> Label2.Height = min_height / 2
> label2.x = (min_width / 2) - (label2.Width / 2)
> label2.y = (min_height / 2) - (label2.Height / 2)
> ME.center
>
> END
>
> PUBLIC SUB Form_Resize()
>
> 'message.Info("cambiando")
> ME.Height = min_height
> ME.Width = min_width
>
> END
>
>
> regards!
>
>
>
> El vie, 28-09-2007 a las 09:30 +0000, smiefert at ...784... escribió:
> > can you mail the plain code?
> >
> >
> >
> > -------- Original Message --------
> > Subject: Re: [Gambas-user] Form.resize event (27-Sep-2007 21:23)
> > From:    jj at ...1636...
> > To:      gambas-user at lists.sourceforge.net
> >
> > > hi!
> > > mmm...this code fails sometimes...please, test the example
> > > (GNULinex/Gambas 1.9.50)
> > >
> > > regards!
> > >
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > >
> > > To: gambas-user at lists.sourceforge.net
> >
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> 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