Assigning message handlers by script
Posted: Fri Oct 03, 2008 6:17 pm
Hello! I am still quite new to Revolution but I am beginning to appreciate it more and more. Coming from traditional programming I had to get used to some of the concepts - but surprisingly it showed that most of the time things worked exactly the way I was thinking about them.
Now I have a problem that I cannot solve on my own. It might be easy or obvious but I can't find anything about it in the documentation:
I am writing a program where some multiple choice options are presented in form of buttons (between 5 and 50) on an extra stack. I create these buttons at runtime dynamically. So far everything is fine. But I want the buttons to react when you click them. So I need to assign some "on mouseDown" script to each of these newly created buttons. How can I do this by script? Or - can I do this at all? If not - which would be the alternative?
Help is very appreciated. Thank you in advance.
Kroka
Now I have a problem that I cannot solve on my own. It might be easy or obvious but I can't find anything about it in the documentation:
I am writing a program where some multiple choice options are presented in form of buttons (between 5 and 50) on an extra stack. I create these buttons at runtime dynamically. So far everything is fine. But I want the buttons to react when you click them. So I need to assign some "on mouseDown" script to each of these newly created buttons. How can I do this by script? Or - can I do this at all? If not - which would be the alternative?
Help is very appreciated. Thank you in advance.
Kroka