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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeDialog shadows

    Cinema 4D SDK
    c++ windows macos r20 r19
    3
    6
    1.0k
    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.
    • C4DSC
      C4DS
      last edited by Manuel

      Hi,
      While prototyping a new plugin, I accidentally noticed that a GeDialog does have a small shadow around it. On Windows 10 this is barely noticable, on macOS (Mavericks, Sierra, High Sierra) it is more obvious.
      I understand that the shadow is an OS related feature, and not controlled by Cinema.
      However, the reason I accidentally noticed this is because when opening GeDialog using DLG_TYPE::ASYNC_POPUPEDIT there is no shadow at all on Windows 10, in contrary to a dialog with menu bar and window frame.
      While on macOS the shadow is always present, no matter the dialog type.
      I haven't looked further in details, but it seems the popup menu also do not show any shadows on Windows 10, while I didn't check what happens on macOS in this regard.

      As such I was wondering if there was a way to prevent shadows from showing up on macOS using specific dialog settings, same as what happens on Windows 10? Or if this behaviour on Windows 10 is just an undocumented feature?

      1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand
        last edited by

        Hi,

        this is a 'feature' of Windows: It will render frameless windows without a drop shadow by default. Unless MAXON went out of their way to unify the drop shadow behaviour of the different platforms, I am afraid there is no (easy) way to do this. Technically you could probably try to get the handle for that window and then turn the drop shadow on, but this is very likely hard to do as all GUI stuff on Windows that does not utilise the intended frontend interfaces.

        Cheers,
        zipit

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • ManuelM
          Manuel
          last edited by

          hi,

          as this is not related to the API itself, i've opened a Bug entry

          Cheers,
          Manuel

          MAXON SDK Specialist

          MAXON Registered Developer

          C4DSC 1 Reply Last reply Reply Quote 0
          • C4DSC
            C4DS
            last edited by

            Just to clarify ...
            I am not trying to get the shadow to show up in case of frameless windows, I am more after a solution to be able to get rid of shadows for frameless windows on macOS as well.

            1 Reply Last reply Reply Quote 0
            • C4DSC
              C4DS @Manuel
              last edited by

              @m_magalhaes
              Do you mean that the fact there is no shadow in case of Windows is seen as a bug and future versions of Cinema4D might fix this issue?
              As I am actually looking for a way to get rid of the shadow on macOS, solving this "bug" for Windows would actually introduce an additional drawback.

              1 Reply Last reply Reply Quote 0
              • ManuelM
                Manuel
                last edited by

                hi,

                this is the current state:
                "I think this is related to the ASYNC_POPUPEDIT being a non-resizable, modal dialog - and as such it is displayed kind of "Win legacy style" by the OS.
                Nothing we actively do set (and something which could change once they do further design overhauls in Win10)"

                Cheers,
                Manuel

                MAXON SDK Specialist

                MAXON Registered Developer

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