To call this, use the procedure CreateButton, like this:
- Code: Select all
CreateButton BUTTONINDEX, LEFT, TOP, WIDTH, HEIGHT, CAPTIONSTRING
To make the button do something when you click it, here is the code you put in your Procedures (the COMPONENTNAME is "Button" and then the value you typed in for the BUTTONINDEX when you created the button [for instance, I typed 1]):
- Code: Select all
Sub Button1_Click(Trigger)
...code...
End Sub