Index Parent

Window class


 

The Window class is used to create windows.

Any graphical object must be added to a window to be visible.

Any window must be added to an application object to be opened.

A window is not created if its Contents is not defined.

 

See Application

 

ATTRIBUTES
Name Type Class Note
Activate B ISGN  
ActiveObject S S  
AltHeight N IG Special values
AltLeftEdge N IG Special values
AltTopEdge N IG Special values
AltWidth N IG Special values
BackDrop B I  
BorderLess B I  
CloseGadget B I  
CloseRequest B I  
Contents S I IND  
DefaultObject S S  
DepthGadget B I  
DragBar B I  
Height N IG Special values
ID S I  
LeftEdge N IG Special values
MenuStrip S I  
NoMenus B IS  
Open B SGN  
PubScreen S ISG  
RefWindow S ISG  
ScreenTitle S ISG  
SizeGadget B I  
Sleep B SGN  
Title S ISG  
TopEdge N IG Special values
UseBottomBorderScroller B I  
UseLeftBorderScroller B I  
Width N IG Special values

 

Special values

 

 

METHODS
Name Parameters Note
LockWindowScreen <stem/V> Note
ScreenInfo <stem/V>,[screen] Note
ScreenToBack    
ScreenToFront    
SetCycleChain {obj} Note
SnapShot    
ToBack    
ToFront    
UnlockWindowScreen   Note

 

LockWindowScreen UnlockWindowScreen
When you wants to open a window or whatever on a screen a RxMUI window is using, you must lock that screen, or you will be never sure that screen is opened when needed. LockWindowScreen is used to obtain the name of the screen the window is using and to lock it. This screen is:

As soon as possible, the screen should be unlock using the method UnlockWindowScreen or strange things may happen. The method (as any other RxMUI one) writes the REAL result from its invocation in the var RC . Just ONE screen may be locked at a time, it means that a double invocation of LockWindowScreen without unlocking will fail (RC=0).
Example:
    call DoMethod("win","LockWindowScreen","S")
    if rc then do
        /* use the screen S here */
        call DoMethod("win","UnlockWindowScreen")
    end
    else do
        /* sorry no screen */
    end

 

ScreenInfo
Used to obtain screen infos. The method writes in stem the field:

screen is the name of an opened pubblic screen or one of the following special values: The default is THIS.

 

SetCycleChain
Sets window cycle chain to max 13 objects. If you have more than 13 objects in your cycle chain, you have to set Area/CycleChain attribute of each. Passing no object, reset the cycle chain.