Jump to content
  • “Great art picks up where nature ends.”  Marc Chagall 

Sign in to follow this  
Myosis

Grayed out or disable X button

Recommended Posts

I'm a bit lost, maybe someone can help me out.

Here a simple modal example:

import c4d
from c4d import gui

class TestDialog(gui.GeDialog):
    def CreateLayout(self):
        self.AddButton(1014, c4d.BFH_SCALEFIT, 100, 17, 'Close')
        return True
    def Command(self, id, msg):
        if id == 1014:
            #CLOSE BUTTON
            self.Close()
            
        return c4d.gui.GeDialog.Command(self, id, msg) 
    def AskClose(self):
        return False
    
if __name__=='__main__':
    dialog = TestDialog()
    dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC,)
    c4d.EventAdd()


I want a dialog box with a grayed out or disable X button.
I can change it to a different dlgtype, but those are not really what I need.

Can I overwrite the “DLG_TYPE_MODAL” ?
 

 

Capture.JPG

Share this post


Link to post
Share on other sites

Try to ask directly on developers forum support

 

https://plugincafe.MAXON.net/

 

...but not sure if it´s posible to access there with python (hide/disable close icon)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • BLOGS

About Us

C4D Cafe is the largest Cinema 4D community. We provide facilities for discussion, showcasing and learning our favourite software.
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, watch tutorials directly from our video gallery,  get your own private messenger, post and upload images, manage your profile and much more. If you need to find solution to your problem or otherwise ask for help, C4D Cafe is the right place to be for learning 3D.  :cowboypistol:

×
×
  • Create New...