>
>>> my problem now is how to set the click action and how to know which
>>> button
>>> is clicking
>>>
>>>       
>> Use this instead:
>>
>> m_button = NEW Button(ScrollView1) AS "MyButton"
>>
>> Set the .Tag property to something unique:
>>
>> .Tag = iUnique
>>
>> And then catch the clicks with:
>>
>> PUBLIC SUB MyButton_Click()
>>   Message.Info("Clicked : " & LAST.tag)
>> END
>>
>>     

>> By the way , how do I delete all the button in the scroll view. 
>>     
Maybe with something like this: (note: this will delete all children so 
maybe also non button objects)

DIM oObject AS Object

FOR EACH oObject IN Scrollview1.Children
    oObject.Delete()
NEXT

Regards,
Ron_2nd.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to