Some comments on showing plugins this way. Don't use the 2xxxx buttoncodes, because the main program will search for a macro M2xxxx. If you want to activate your plugin with exec.Callbutton() then don't check for the onscreen parameter.
- Code: Select all
public void Buttonpress_event(int buttonnumber, bool onscreen)
{
if (buttonnumber == 10000)
{
// myform = new PluginForm(this);
myform.Show();
myform.BringToFront();
}
}