lm_arrange

Arrange uicontrol objects in rows and columns


CALL:

   lm_arrange(hframe,property,value,...)                                       
   lm_arrange(hframe,propertystruct)                                                                   
                                                                                    

INPUT:

      input comes in parameter-name,value pairs (parameter name not case
      sensitive)
      LMARGE, value: margin left (Default =10)
                     LMARGE is a scalar  
      RMARGE, value: margin right (Default =10)
                     RMARGE is a scalar  
      HMARGE, value: margin between, horizontal (Default =5)
                     HMARGE may be specified as a vector or scalar  
      TMARGE, value: margin top (Default =15)
                     TMARGE is a scalar  
      BMARGE, value: margin below (Default =6)
                     BMARGE is a scalar  
      VMARGE, value: margin between, vertical (Default =1)
                     VMARGE may be specified as a vector or scalar  
      PIXELW, value: pixel width of frame (default: compute)
      PIXELH, value: pixel height of frame (default: compute)
      NORESIZE, value: if set, do not resize frame
      HEQUAL, value: if set, distribute Horizontally (default: 0)
      VEQUAL, value: if set, distribute Vertically (default: 0)
      HNORM, (0,1) if 1: normalize  horizontally (use full frame width)
      VNORM, (0,1) if 1: normalize  vertically (use full frame height)
      HCENTER, (0,1,2) if 0: left align
                       if 1: center items in horizontal direction
                       if 2: right align items in horizontal direction
               NOTE: if HNORM==1 the HCENTER option is ignored
      VCENTER, (0,1,2) if 0: top align
                       if 1: center items in vertical direction
                       if 2: bottom align
               NOTE: if VNORM==1 the VCENTER option is ignored
 
  INDIRECT INPUT
      object application data:
          keeppixelsize: set to 1 to prevent changing pixelsize
          ignoreh      : set to 1 to prevent using height to compute row
                         pixel height
          ignorew      : set to 1 to prevent using width to compute column
                         pixel width
          pixelpos     : if set, pixelpos is not recomputed
          normpos      : if option HNORM is active, element 3 of normpos is
                         used (EXCEPTION: if object is spread over more
                         columns, its normalized width is not used)
      object attributes
          pos
          type
          extent

OUTPUT:

   pixpos:
     [pixpos(1) pixpos(2] extent van objecten, inclusief marges    
   raster: 
     Coordinates of raster. Suppose raster is M x N:
           raster.x.pixelpos (length N+1)
           raster.x.normpos  (length N+1)
           raster.y.pixelpos (length M+1)
           raster.y.normpos  (length M+1)