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

    Odd Behaviour with resource files

    SDK Help
    0
    2
    207
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 19/05/2004 at 15:29, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.206 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      Hi,
       
      I have wrote a plugin, and it uses a resource file that has a quite complex UI defined in it that is used in the AM.
      My plugin has set the default values for the controls on its Init method.
       
      I just tried to add two new LINK controls to my dialog. So I add two new enums in my .h file, then I had the two enums in my .str file, then finally I add those two new enums into the .res file, at the position where I would like them to be shown in the UI.
       
      When I came to check my plugin, the AM was wrong, certain controls were not at there default values, and some controls where comepletly hidden.
       
      After inspection of the resource files, I could not understand why it was acting up like this, until I - a shot in the dark - guess to re-order the constants in the enum list.
       
      Waddyaknow, the UI was correctly shown, and its function worked correctly (i.e some controls hides other controls, like it supposed to)
       
      So my question, why would the order of my enum list have different effects on the outcome of the UI. I am not accessing any of the controls directly with its enum number, always using the enums actaul names.
      The first enum element starts at 4000, thats should be ok right?
       
      Thanks

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 20/05/2004 at 04:16, xxxxxxxx wrote:

        It shouldn't. Hard to say what's wrong without seeing the actual files.

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