Gui elements size



  • 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?



  • 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.



  • 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 ;)


Log in to reply