Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Timer with 'DLG_TYPE_MODAL'

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 601 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 24/05/2015 at 01:27, xxxxxxxx wrote:

      I need to open a dialog with 'DLG_TYPE_MODAL' to prevent the user from making changes while it is open.
      However, it seems many things don't work with this type: pop-up tooltips, button hover-color changes, and timers are a few.

      Is there some way to make a timer work with a 'DLG_TYPE_MODAL' ?

      Also, there doesn't seem to be an option with 'DLG_TYPE_ASYNC' to make it not sizable.
      Is that correct?

      Thanks,

      Chris

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 25/05/2015 at 03:50, xxxxxxxx wrote:

        Hi Chris,

        Originally posted by xxxxxxxx

        I need to open a dialog with 'DLG_TYPE_MODAL' to prevent the user from making changes while it is open.
        However, it seems many things don't work with this type: pop-up tooltips, button hover-color changes, and timers are a few.

        Is there some way to make a timer work with a 'DLG_TYPE_MODAL' ?

        In which context are you? A script or a plugin?

        Originally posted by xxxxxxxx

        Also, there doesn't seem to be an option with 'DLG_TYPE_ASYNC' to make it not sizable.
        Is that correct?

        Yes there's no way to make an asynchronous dialog not sizable.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 29/05/2015 at 08:57, xxxxxxxx wrote:

          Yannick,
          It is a Python plugin, and the timer doesn't work with modal.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 01/06/2015 at 08:09, xxxxxxxx wrote:

            Hi Chris,

            Could you post some code? I can't reproduce this behavior.

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              On 15/12/2016 at 08:02, xxxxxxxx wrote:

              I am having some issues getting tooltips to work with modal dialogs as well.

              The code for the bitmap button:

              bc = c4d.BaseContainer()
                  helpText = "<b>BOLD HEADER</b>\nInfo text here."
                  bc.SetString(c4d.BITMAPBUTTON_TOOLTIP, helpText)
                  dir, file = os.path.split(__file__) ## GET THE PLUGIN DIRECTORY
                  h = os.path.join(dir, "res/icons", "ButtonImage.png") ## GET THE IMAGE LOCATION
                  bc.SetBool(c4d.BITMAPBUTTON_BUTTON, True)
                  bc.SetFilename(BUTTON, h)
                  self.myButton = self.AddCustomGui(BUTTON, c4d.CUSTOMGUI_BITMAPBUTTON, "Bitmap Button", c4d.BFH_CENTER | c4d.BFV_CENTER, 10, 1, bc)
                  self.myButton.SetImage(h)

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                On 16/12/2016 at 10:15, xxxxxxxx wrote:

                Hi Marc,

                I confirm tooltips doesn't work inside modal dialogs. I'll check if this is a limitation or a bug.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  On 16/12/2016 at 10:17, xxxxxxxx wrote:

                  Thanks! Would be great if there was a fix or work around 🙂

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post