Bitmapbutton Toggle



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

    On 26/08/2006 at 23:30, xxxxxxxx wrote:

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

    ---------
    Okay, I give. How do you make a Bitmapbutton toggle and toggle a bitmapbutton? So far, I either get no 'border' toggle or just a plain momentary-switch (regular button). SetToggleState() isn't working for me - and I've tried:

    bc.SetBool(BITMAPBUTTON_BUTTON, TRUE);
    bc.SetBool(BITMAPBUTTON_TOGGLE,     TRUE);

    bc.SetBool(BITMAPBUTTON_BUTTON, FALSE);
    bc.SetBool(BITMAPBUTTON_TOGGLE,     TRUE);

    bc.SetBool(BITMAPBUTTON_BUTTON, TRUE);
    bc.SetBool(BITMAPBUTTON_TOGGLE,     FALSE);

    bc.SetBool(BITMAPBUTTON_BUTTON, FALSE);
    bc.SetBool(BITMAPBUTTON_TOGGLE,     FALSE);

    According to my logic tables, there ain't no more permutations here. ;)

    Does the border have to be forcibly changed to indicate the toggle state?

    Thanks,



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

    On 27/08/2006 at 09:00, xxxxxxxx wrote:

    Nevermind on that. I see that the borders are either static or bouncy - so best to use two-state images, one with the border out, the other with the border in.

    Thanks,


Log in to reply