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

    Bitmap Buttons

    SDK Help
    0
    4
    520
    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 13/03/2003 at 00:24, xxxxxxxx wrote:

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

      ---------
      Hi everybody!

      I created BitmapButtons in R7 with:

      AddUserArea( GADGET_MYPICTURE, BFH_FIT, 0, 0 );
         AttachImage( GADGET_MYPICTURE, "bitmap.bmp", 0, 0 );

      Since there is no "AttachImage" in R8 i tried:

      BaseContainer settings;
         BitmapButtonCustomGui *bmp_logo = NULL;
         settings.SetBool(BITMAPBUTTON_BORDER,TRUE);
         bmp_logo = (BitmapButtonCustomGui* ) AddCustomGui(GADGET_MYPICTURE, CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings);
         if (bmp_logo) bmp_logo->SetImage("bitmap.bmp");

      It works, but the buttons are 2D! No "Button-Down"-effect. Has anybody a solution?

      Thanks
      Chris

      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 13/03/2003 at 08:23, xxxxxxxx wrote:

        pass TRUE to your settings container for the BITMAPBUTTON_BUTTON id
        settings.SetBool(BITMAPBUTTON_BUTTON,TRUE);

        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 13/03/2003 at 23:02, xxxxxxxx wrote:

          pass TRUE to your settings container for the
          >
          > > BITMAPBUTTON_BUTTON id
          >
          > > settings.SetBool(BITMAPBUTTON_BUTTON,TRUE);
          >
          > Thats what I also tried! No effect. TRUE/FALSE, no difference.
          >
          > BITMAPBUTTON_BORDER,BITMAPBUTTON_TOGGLE,BITMAPBUTTON_BUTTON same style.
          >
          > Where is the error?
          >
          >  
          >
          >  
          >
          >

          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 14/03/2003 at 00:06, xxxxxxxx wrote:

            Solution 🙂

              
            BaseContainer settings;  
            BitmapButtonCustomGui *bmp = NULL;  
              
            settings.SetLong(DESC_CUSTOMGUI,CUSTOMGUI_BITMAPBUTTON);  
            settings.SetBool(BITMAPBUTTON_BUTTON,TRUE);  
            settings.SetLong(BITMAPBUTTON_BORDER,1);  
              
            bmp = (BitmapButtonCustomGui* ) AddCustomGui(GADGET_SHOWALL,CUSTOMGUI_BITMAPBUTTON,String(),BFH_FIT,0,0,settings);  
            if (bmp) bmp->SetImage("bitmap.bmp");  
            

            Thanks you, Samir!

            Chris

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