Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Custom mouse icon, define touch point.

    Cinema 4D SDK
    2
    4
    677
    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.
    • RenatoTR
      RenatoT
      last edited by m_adam

      Hi all,

      how can I set the coordinate of touch point of my custom icon?
      I registered 2 png icons and it work as expected with GetCursorInfo.. but the touch point of my custom mouse cursor are in the center of bitmap. I would like to set it precise or my arrow don't work.

      Thanks in advance
      Renato

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @RenatoT please try to embed as much as possible information in your question (help us to help you).
        Like in which context are you using GetCursorInfo, in which context are you executing your code? Where do you want to use this icon with a custom TouchPoint area?

        In any case, I would say your option is pretty limited since I see no way to define the touchpoint of an icon or even a BitmapButtonCutomGui.

        So the only solo possible way is to create your own GeUserArea embedded within your own GeDialog.
        And in this GeUserArea, display a Background Picture and then in the GeUserArea.InputEvent function react to some area.

        Then you can embedded this GeDialog where you want, but you cant use this icon everywhere as you could do with an icon (like in a palette, you will have to embed your dialog).

        If you want an example one of my first plugins was actually that (It's open-source see PivorMaster).

        Hope this help,
        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • RenatoTR
          RenatoT
          last edited by

          Hi Maxime,
          thanks for reply. I'm in a ToolData plugin. The viewport is where I would like use a custom mouse cursor.

          1 Reply Last reply Reply Quote 0
          • RenatoTR
            RenatoT
            last edited by

            Anyway, i'll add my custom offset to the mouse coordinate to match the point from the center, as seem by default.

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