Skip to main content
2-Explorer
Jan 18, 2018 4:12 AM UTC
Solved

Close button on resource file

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

15-Moonstone
Jan 18, 2018 7:15 AM UTC

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

3 replies

15-Moonstone
Jan 18, 2018 7:15 AM UTC

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

Translate
2-Explorer
Jan 18, 2018 11:18 AM UTC

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?

Translate
15-Moonstone
Jan 18, 2018 11:24 AM UTC

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

Translate