The second argument is indeed a method that gets called when the button is pushed. An event handler has the following signature
Dialogs.PushPickButton(form, OnPickButtonPushed); // reference the function below
void OnPickButtonPushed(object sender, EventArgs args)
{
// do something here
}
Hi, I managed to make work my modal dialog with choosePickButton, but I noticed that once the user finishes the object selection process (in my case that was the purpose of choosePickButton method), Rhino UI is not fully locked, like it initially was.
Most of commands are not responsive, but for example, before closing the dialog, the user is able to create new layers. Am I missing something?
Not sure if I was clear enough with my explanation…
I meant, when ChoosePickButton method is finished and the process return to the parent modal form, I was expecting that Rhino’s interface to be locked as it was before using choosePickButton, but is not exactly fully locked, for example, model navigation is available, also some document editions commands, is the creation of new layers.
Is this the normal behavior?
any comment would be appreciated.
thanks.
well, its not that a big issue to me, but generally I would prefer to have total control over the interface while editing a window from my plugin…i guess…