[Gambas-user] how control a picturebox create in code...
Dag-Jarle Johansen
dag.jarle.johansen at ...626...
Mon Oct 3 20:44:00 CEST 2011
hola, que tal,
try rather the WAIT-Function if the Timer makes problems
do while True
bicentenario.move(bicentenario.x + 10, bicentenario.y)
Wait 0.01 '(try out what you need here)
and not forgetting...
IF bicentenario.Left+bicentenario.Width > ME.Width then
'DO SOMETHING, if not your anniversery will disapppear into nirvana
END
WEND
At least I have good experience with WAIT, for example in a scrolltext, very
exact and no problems
Regards,
Dag-Jarle
2011/10/3 Alexis Sanchez <aasanchez at ...626...>
> i have this rutine...
>
> PUBLIC SUB pictures_init(formulario AS Form)
> DIM bicentenario AS PictureBox
> 'Dibujamos el logo del Bicentenario
> bicentenario = NEW PictureBox(formulario)
> bicentenario.Picture = Picture["img/bicentenario.png"]
> bicentenario.Width = 10
> bicentenario.Height = 20
> bicentenario.x = Desktop.Width - 80
> bicentenario.y = 30
> END
>
> in real life this function is more large, this create 50 picturebox...
>
> ok, but, i need after create, with a timer move the picture...
>
> something like this..
>
> PUBLIC SUB relog_Timer()
> bicentenario.x = bicentenario.x + 10
> ENDIF
>
> But i cant... launch a error... pls i need do this...
>
>
>
> --
> Alexis Sanchez
> 0416-2584008
> Linux Counter User: 484046
> http://alexissanchez.net
> Ubuntu 10.10 & Kernel: 2.6.35-25
> Twitter: @aasanchez
> facebook: facebook.com/aasanchez
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> 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