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
    • Recent
    • Tags
    • Users
    • Login

    Image/bitmap into dialog as title

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 391 Views
    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 Offline
      Helper
      last edited by

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

      On 16/01/2009 at 03:16, xxxxxxxx wrote:

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

      ---------
      I know how to add text to a dialog box, but how can I insert my own image? I would like to create a custom title for the dialog window of a plugin that I am working on.

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

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

        On 16/01/2009 at 06:28, xxxxxxxx wrote:

        Inside your Dialog's CreateLayout() :

        BaseContainer          tbc;
        tbc.SetLong(DESC_CUSTOMGUI,                         CUSTOMGUI_BITMAPBUTTON);
        tbc.SetLong(BITMAPBUTTON_BORDER,               BORDER_NONE);
        tbc.SetBool(BITMAPBUTTON_BUTTON,               FALSE);
        tbc.SetBool(BITMAPBUTTON_TOGGLE,               FALSE);
        tbc.SetBool(BITMAPBUTTON_DRAWPOPUPBUTTON,     FALSE);
        Filename               bg;
        // Column: Banner
        // - BitMap Button
        BitmapButtonCustomGui* bmbutton =               (BitmapButtonCustomGui* )AddCustomGui(IP_ABOUT, CUSTOMGUI_BITMAPBUTTON, String(), BFH_CENTER|BFV_CENTER, SizePix(256L), SizePix(40L), tbc);
        if (bmbutton)
        {
             bg =                    GeGetPluginPath()+Filename("res")+Filename("banner.tif");
             if (GeFExist(bg))     bmbutton->SetImage(bg, FALSE);
        }

        Note that the SizePix() values will be the width and height of your image.

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

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

          On 16/01/2009 at 06:35, xxxxxxxx wrote:

          There are several ways to do this. The one Robert has posted is probably the most straight forward. Another way would be to use user areas (GeUserArea) for additional control, although this can get quite complex.

          cheers,
          Matthias

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

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

            On 16/01/2009 at 11:13, xxxxxxxx wrote:

            Beautiful! Thank you.

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