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

jose julio vidal jj at ...1636...
Fri Sep 28 23:47:22 CEST 2007


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





More information about the User mailing list