[Gambas-user] Object beginer, how to create objects on a form

Jussi Lahtinen jussi.lahtinen at ...626...
Sat Jun 18 16:14:06 CEST 2011


Add some size for it, example:

 hTextBox1.Width = 100
 hTextBox1.Height = 100


Jussi



On Sat, Jun 18, 2011 at 17:00, Demosthenes Koptsis
<demosthenesk at ...626...>wrote:

> Hi,
>
> i try to implement some examples about object creation.
> i have this example
>
> ---------------------
> Public Sub Button1_Click()
>
>  Dim hTextBox1 As TextBox
>
>  hTextBox1 = New TextBox(FMain)
>  hTextBox1.Text = "Set hTextBox1"
>  hTextBox1.X = 80
>  hTextBox1.Y = 120
>
>  FMain.Refresh
>  Wait 1
>
> End
> ---------------------
>
> I expect the textbox to appear on Fmain, but it isn't.
>
>
> --
> Regards,
> Demosthenes Koptsis.
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> 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