lm_title

Set or get the title of a modelit.layout.Frame


CALL:

   h = lm_title(hframe): return handle to title object
   h = lm_title(hframe, str, varargin): install title in frame
 

INPUT:

   hframe:
     modelit.layout.Frame
   str:
     title to be displayed in frame
   varargin: 
     valid property-value pairs for a uicontrol with style “text”
 

OUTPUT:

   h:
     handle to title object (uicontrol with “text”)
 

APPROACH:

   (default settings applied)
    -1- create a uicontrol with properties:
        tag      = 'frmTitle'
        userdata = <handle of frame>
    -2- call lm_linkobj with properties:
        pixpos    = <depends on extent of title>
        normpos   = [0 1 0 0]
        clipping  = true
        clipframe = <parent of frame>
        keepypos  = true