Ignore:
Timestamp:
08/29/06 14:59:46 (18 years ago)
Author:
navarro
Message:

header improvements : type of parameters and keywords, default values, spell checking + idldoc assistant (IDL online_help)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/STRING/str_size.pro

    r157 r163  
    33; @file_comments 
    44; The purpose of this function is to return the proper 
    5 ; character size to make a specified string a specifed 
     5; character size to make a specified string a specified 
    66; width in a window. The width is specified in normalized 
    77; coordinates. The function is extremely useful for sizing 
     
    1212; 
    1313; @param STRING {in}{required} 
    14 ; This is the string that you want to make a specifed 
     14; This is the string that you want to make a specified 
    1515; target size or width. 
    1616; 
    17 ; @param TARGETWIDTH {in}{optional} 
     17; @param TARGETWIDTH {in}{optional}{default=0.25} 
    1818; This is the target width of the string in normalized 
    1919; coordinates in the current graphics window. The character 
    2020; size of the string (returned as thisCharSize) will be 
    2121; calculated to get the string width as close as possible to 
    22 ; the target width. The default is 0.25. 
     22; the target width. 
    2323; 
    24 ; @keyword INITSIZE  
     24; @keyword INITSIZE {default=1.0}  
    2525; This is the initial size of the string. Default is 1.0. 
    2626; 
    27 ; @keyword STEP 
     27; @keyword STEP{default=0.05} 
    2828; This is the amount the string size will change in each step 
    29 ; of the interative process of calculating the string size. 
    30 ; The default value is 0.05. 
     29; of the interactive process of calculating the string size. 
    3130; 
    3231; @returns  
     
    5352;- 
    5453 
    55 FUNCTION STR_SIZE, string, targetWidth, INITSIZE=initsize, STEP=step 
     54FUNCTION str_size, string, targetWidth, INITSIZE=initsize, STEP=step 
    5655; 
    5756  compile_opt idl2, strictarrsubs 
Note: See TracChangeset for help on using the changeset viewer.