Odd Behaviour with resource files



  • 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



  • 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.


Log in to reply