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

    Gui elements size

    SDK Help
    0
    3
    338
    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 25/11/2003 at 00:49, xxxxxxxx wrote:

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

      ---------
      I design my gui elements with resedit 1.7 There you cen specify height and width of the items...but in what kind of unit??? For ex I have an item with a height of 410 "whatevers"....on my 1024x768 desktop this is more than 3/4 of the vertical screen size. The width is 300 "whatevers", but if I load an image on that item ( is a bitmapbutton ), then the effective image size is less than 200 pixels......at the moment I just try out to cut my images to an according size, not a nice job. How do I have to interpret the values I set with resedit?

      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 26/11/2003 at 06:27, xxxxxxxx wrote:

        From the SDK documentation:

          
        Size  
          
        Some elements support the option to specify their size manually.  
        This is done using the flag:  
          
        Flag     Explanation  
        SIZE width, height     Specify the size manually  
          
        Negative values of width and height specify absolute pixel values.  
        For example SIZE -100,-20 means 100 pixels wide and 20 pixels  
        high. Positive values specify the width in 1/10ths of a character  
        and the height in 1/10ths of a line. So SIZE 100,10 gives an  
        element that is ten characters wide and one line high. A height or  
        width of 0 means the default or minimum size of the element.  
        

        So basically you need to specify negative values if you want exact pixel dimensions. Otherwise the size of your items will depend on the size of the system font.

        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 26/11/2003 at 06:55, xxxxxxxx wrote:

          Ok, now I understand it 😃
          Haven't found it in the SDK because I'm still fighting with the structure and the ammount of possibilities of it....but step by step I'm learning 😉

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