Skip to main content
1-Visitor
January 12, 2018
Solved

Accept button for Creo Toolkit GUI

  • January 12, 2018
  • 1 reply
  • 1446 views

Hello

 

We have developed GUI and it has two push button along with other controls. Can we set accept button into Toolkit GUI like other windows application?

 

Let me make this more clear. I have two buttons OK and Cancel on GUI. Is there some setting into Creo toolkit GUI which allow me to set OK button as accept button (This makes pressing of Enter from keyboard as equivalent to user clicking on OK button by mouse).

 

Regards

Ketan

Best answer by YaroslavSin

Hello @Ketan_Lalcheta

 

Look at .DefaultButton property of the Dialog component

 

"The name of the component of the dialog which is to be treated as the default button of the dialog. The default button is automatically activated when the user hits RETURN or presses the middle mouse button within the Dialog."

1 reply

17-Peridot
January 12, 2018

Hello @Ketan_Lalcheta

 

Look at .DefaultButton property of the Dialog component

 

"The name of the component of the dialog which is to be treated as the default button of the dialog. The default button is automatically activated when the user hits RETURN or presses the middle mouse button within the Dialog."