How to control the service button in the header?
Edpa
Posts: 46
Sorry how I can control these buttons( now default in dialog) or remove them?
I do not need in Help button because I have a normal HELP with images in script and I want delete this button.
I don't know how to control Exit button . I have to keep track of button click by user to return the 3D window in the the right state.
Post edited by Edpa on
Comments
Clicking X will be the same as hitting the Cancel button in the dialogue.
Hi, Richard!
When I click my button Cancel - my function begin to work too. When I pressed X, I exit from script only. :(
At present it seems there is no way to control or remove these buttons in Script.
You can execute your clean-up code AFTER the DzDialog.exec() returns ... This way it does not matter how the dialog terminates, your code will always be executed. (You do not need or want a special Cancel button).
For more on this, see: http://www.daz3d.com/forums/discussion/81136/partly-solved-how-to-detect-that-a-dzdialog-is-about-to-close
-P
Praxis, thanks.
Try this code for dialog without service buttons (only X button)
There is a basic DzDialog that doesn't have any default widgets, rather thans tarting with a pre-defined dialogue (intended to make the UI more consistent and to give authers a simple starting point) and disabling features.
Ok, I didn't know or did not pay attention when working with DzDialog :) Thanks.