[Gambas-user] Problem with collective event procedure

Dominique SIMONART simonart.dominique at ...11...
Wed Dec 12 10:54:43 CET 2007


Benoit Minisini a écrit :
> 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.
>
>   
OUPS !!!!
Never think about that!  :)

Dominique





More information about the User mailing list