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  
InputEvent S N Note
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  
SizeRight 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

InputEvent
Used in notification like
call Notify("mwin","InputEvent","ramiga b","app","Return","call GoURL('BACK')")

to make a method be invoked on an object when a keys combination is played.

 

METHODS
Name Parameters Note
LockWindowScreen <stem/V> Note
ScreenInfo <stem/V>,[screen] Used to obtain screen infos.
The method writes in stem the field:
  • NAME
  • LEFTEDGE
  • TOPEDGE
  • WIDTH
  • HEIGHT
  • FLAGS
  • TITLE
  • DEFAULTTITLE
  • BARHEIGHT
  • BARVBORDER
  • BARHBORDER
  • MENUVBORDER
  • MENUHBORDER
  • WBORTOP
  • WBORLEFT
  • WBORRIGHT
  • WBORBOTTOM
  • DETAILPEN
  • BLOCKPEN
  • FONT.NAME
  • FONT.YSIZE
  • FONT.STYLE
  • FONT.FLAGS

screen is the name of an opened pubblic screen or one of:

  • Default
  • This (default)
ScreenToBack    
ScreenToFront    
SetCycleChain {obj} Sets the 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.
SnapShot    
ToBack    
ToFront    
UnLockWindowScreen   Note
LockWindowScreen UnLockWindowScreen
When you want 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. This method 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 released using the method UnLockWindowScreen or strange things may happen. The method (as any other RxMUI one) writes its real result in RC . Just one screen may be locked at a time, it means that a double invocation of LockWindowScreen without unlocking the screen 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