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

Close button on resource file

  • January 18, 2018
  • 1 reply
  • 1730 views

Hello

 

Preparing UI using resource file / Toolkit APIs. Able to find close button as disabled on top of it.

 

Any idea how to have it enabled?

 

Thanks

Ketan

Best answer by Eike_Hauptmann

You just need to connect a onClose Method inside you cpp code.

 

ProUIDialogCloseActionSet

 

After you have connected it the button should be available.

 

Br,

Eike

1 reply

15-Moonstone
January 18, 2018

You just need to connect a onClose Method inside you cpp code.

 

ProUIDialogCloseActionSet

 

After you have connected it the button should be available.

 

Br,

Eike

1-Visitor
January 18, 2018

Thank you so much. This solved my purpose. Till now we were adding another button having Close as Button text.

 

I almost go with API but few people from team follows resource file practice. For another thought, any one having idea for achieving same in case of Resource file?

15-Moonstone
January 18, 2018

You can't activate these button by ressource.

So the button never know what it should do from the resource file. This depends on wich mode the dialog is running (modal or non modal).

So you need to add these function to activate the button.

 

Br,

Eike