cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Close button on resource file

SOLVED
Highlighted
Tanzanite

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Close button on resource file

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

View solution in original post

3 REPLIES 3

Re: Close button on resource file

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

View solution in original post

Re: Close button on resource file

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?

Re: Close button on resource file

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