Tool controls vs. object controls?



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

    On 01/12/2004 at 06:48, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    I have some custom tags. Their UIs are defined using 'CONTAINER' res files. In these files I use PARENTID to logically group related elements, and MIN, STEP and MAX to set the allowable value ranges.
    In the code I override 'GetDEnabling' to provide the control logic regarding which parameters are greyed out.
    This all works fine.

    I also have a custom tool, which has many of the same parameters. Its UI is defined in a 'DIALOG' res file, but I'm having problems replicating the visual grouping (PARENTID doesn't seem to be allowed in DIALOG res files), and I don't know how to grey out elements since GetDEnabling is not available in ToolData (it's defined in NodeData, so it's available to objects, but not tools).

    Obviously this is possible, since e.g. 'Bevel' does it.

    So, what key piece of the jigsaw am I missing?

    Cheers - Steve



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

    On 03/12/2004 at 18:02, xxxxxxxx wrote:

    Anybody?



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

    On 05/12/2004 at 03:43, xxxxxxxx wrote:

    Hi Steve,

    do you mean the greying out? This is done for dialog resources with Enable(ELEMENT_ID,Bool not_ghosted);

    HTH
    Katachi



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

    On 08/12/2004 at 05:09, xxxxxxxx wrote:

    Aha!
    Somehow I'd completely missed that, and this was just the pointer that I needed!

    Thanks Katachi!

    P.S. Did you get the business with the materials parameters sorted out?


Log in to reply