Re: Question on activating a plugin with a button
Posted: Sun Nov 04, 2018 9:55 pm
It should work. There must be something else in myform that inactivates your plugin (or just the form).
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.
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();
}
}