[Gambas-user] How to specify action button at runtime

2009-07-15 Thread kobolds
Hi, I try create button at run time but I having trouble to set the click action. here my code DIM m_MaxCol AS Integer = 5 DIM m_button AS Button DIM m_MaxBut AS Integer = 18 DIM m_Colcnt AS Integer = 0 DIM m_Rowcnt AS Integer = 0 DIM m_butcnt AS Integer = 0 DIM m_Colgap AS Integer = 2 DIM

Re: [Gambas-user] How to specify action button at runtime

2009-07-15 Thread Ron
kobolds wrote: Hi, I try create button at run time but I having trouble to set the click action. here my code DIM m_MaxCol AS Integer = 5 DIM m_button AS Button DIM m_MaxBut AS Integer = 18 DIM m_Colcnt AS Integer = 0 DIM m_Rowcnt AS Integer = 0 DIM m_butcnt AS Integer = 0 DIM

Re: [Gambas-user] How to specify action button at runtime

2009-07-15 Thread kobolds
Ron Klinkien wrote: kobolds wrote: Hi, I try create button at run time but I having trouble to set the click action. here my code DIM m_MaxCol AS Integer = 5 DIM m_button AS Button DIM m_MaxBut AS Integer = 18 DIM m_Colcnt AS Integer = 0 DIM m_Rowcnt AS Integer = 0 DIM m_butcnt

Re: [Gambas-user] How to specify action button at runtime

2009-07-15 Thread kobolds
Ron Klinkien wrote: kobolds wrote: Hi, I try create button at run time but I having trouble to set the click action. here my code DIM m_MaxCol AS Integer = 5 DIM m_button AS Button DIM m_MaxBut AS Integer = 18 DIM m_Colcnt AS Integer = 0 DIM m_Rowcnt AS Integer = 0 DIM m_butcnt

Re: [Gambas-user] How to specify action button at runtime

2009-07-15 Thread Ron
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()

Re: [Gambas-user] How to specify action button at runtime

2009-07-15 Thread kobolds
Ron Klinkien wrote: 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: