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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Close button on resource file

Ketan_Lalcheta
19-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

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

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

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?

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

Top Tags