home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / e / EasyGUI_v33b2.lha / Docs / tabs.doc < prev    next >
Text File  |  1996-12-04  |  1KB  |  48 lines

  1. Tabs PLUGIN
  2. -----------
  3. Makes a set of tabs for page selection (most useful with changegui()).
  4. Uses the 'tabs.gadget' which needs to be in the normal place of
  5. libs:gadgets/ (usually libs: is also assigned to sys:classes/, and .gadget
  6. files should be stored in the sys:classes/gadgets/ directory).
  7.  
  8. Constructors:
  9.  
  10.     tabs(tabslist:PTR TO tablabel,current=0,max=TRUE,disabled=FALSE)
  11.         tabslist -> The list of labels to use
  12.         current  -> The initial tab selected
  13.         max      -> Whether each tab has the width of the widest tab
  14.         disabled -> Whether this gadget is disabled
  15.  
  16.     Note: the gadget will *conditionally* resize in width.
  17.  
  18. Destructor:
  19.  
  20.     END *must* be called for each NEWed object.
  21.  
  22. Data (should be considered read-only):
  23.  
  24.     OBJECT tabs OF plugin
  25.       current   -> Currently selected tab
  26.       disabled  -> Disabled or enabled
  27.     PRIVATE ...
  28.     ENDOBJECT
  29.  
  30. New methods:
  31.  
  32.     setcurrent(x)              -> Set the current selected tab
  33.     setdisabled(disabled=TRUE) -> Disable/enable the gadget
  34.  
  35. Action functions:
  36.  
  37.     Your action function will be called (or your action value returned by
  38.     easygui()) in the following circumstances:
  39.       o When one of the tabs is pressed
  40.         (current will indicate the selected tab)
  41.  
  42. Exceptions:
  43.  
  44.     "tabs" will be raised by the constructor if the .gadget file can't be
  45.            opened.
  46.     "tabs" will be raised by the render() method if the gadget can't be
  47.            created.
  48.