Buttons Plugin (uses cpvButton.ocx in System32)
Posted: Sat Jun 27, 2009 10:40 pm
I created my first real plugin (using System32's OCX "cpvButton.ocx"). It creates 3D buttons (like actual VB buttons) in a defined area.
To call this, use the procedure CreateButton, like this:
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]):
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