[Gambas-user] Problem with collective event procedure
Benoit Minisini
gambas at ...1...
Wed Dec 12 10:23:02 CET 2007
On mercredi 12 décembre 2007, Dominique SIMONART wrote:
> Hi everybody,
>
> Gambas 1.9.91 OpenSuse 10.3 Kde
> I'm using an array of picturebox so I write this
>
> PUBLIC CardImg AS NEW Object[]
>
> and in form_Open
>
> For C = 0 to 51
> CardImg[C] = NEW PictureBox(ME) AS "Images"
> .
> .
> Next
>
> Then I wrote the associated procedure like this
>
> PUBLIC PROCEDURE Images_Click()
> something
> END
> This doesn't work, but if you change Click() by MouseDown(), like this
>
> PUBLIC PROCEDURE Images_MouseDown()
> something
> END
> it works! So this is an easy workaround, but the sample in the doc show
> the _Click() way!
>
> Am I missing something?
> regards
>
> Dominique
>
>
PictureBox has no Click event, so this is normal.
--
Benoit Minisini
More information about the User
mailing list