Progress
ADM 2 Reference


hideObject (smart.p)

Hides the current object if it is a visual object and sets the ObjectHidden property to true to indicate the state of the object.

Parameters: None

Returns: Nothing (procedure)

Notes:

Examples:

ON CHOOSE OF MENU-ITEM mi_Hide_Children 
DO: 
  DEFINE VARIABLE cHandles AS CHARACTER NO-UNDO. 
  DEFINE VARIABLE hSMO     AS HANDLE    NO-UNDO. 
  DEFINE VARIABLE i        AS INTEGER   NO-UNDO. 
  /* Find all the children of a SmartWindow and HIDE the child windows. */ 
  CHandles = dynamic-function(‘linkHandles’:U, 
    INPUT ‘Container-Target’:U). 
  DO i = 1 TO NUM-ENTRIES (cHandles): 
    /* cHandles is a comma-separated list of SmartObject handles. */ 
    hSMO = WIDGET-HANDLE(ENTRY(i, cHandles)). 
    /* See if this SmartObject is a SmartWindow. */ 
     IF dynamic-function(‘getObjectType’:U IN hSMO) = "SmartWindow":U THEN 
      RUN hideObject IN hSMO. 
  END. 
END. 


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095