Hi,
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” ?