Index Parent

Window class


The Window class is used to create Intuition windows.

Note that:

See Application

 

Attributes
Name Type Class Note
Activate B ISGN  
ActiveObject S SG  
AltHeight N IG Special values:
MinMax(p) 0-p
Visible(p) -100-p
Screen(p) -200-p
Scaled(p) -1000
AltLeftEdge N IG Special values:
Centered -1
Moused -2
NoChange -1000
AltTopEdge N IG Special values:
Centered -1
Moused -2
Delta(p) -3-p
NoChange -1000
AltWidth N IG Special values:
MinMax(p) 0-p
Visible(p) -100-p
Screen(p) -200-p
Scaled(p) -1000
AppMessage B GN  
AppWindow B I  
BackDrop B I  
BorderLess B I  
CloseGadget B I  
CloseRequest B I  
Contents S I IND  
DefaultObject S S  
DefaultReqWin B ISGN Makes DOS requesters to appear on the screen of the window. Note that: it was not test with strange combinations of ARexx/Pragma('W',...) function, it is only valid when the window is opened and only for one window per macro.
DepthGadget B I  
DragBar B I  
Height N IG Special values:
MinMax(p) 0-p
Visible(p) -100-p
Screen(p) -200-p
Scaled(p) -1000
Default -1001
ID M ISGN G2N  
InputEvent S N Note
LeftEdge N IG Special values:
Centered -1
Moused -2
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:
Centered -1
Moused -2
Delta(p) -3-p
UseBottomBorderScroller B I  
UseLeftBorderScroller B I  
UseRightBorderScroller B I  
Width N IG Special values:
MinMax(p) 0-p
Visible(p) -100-p
Screen(p) -200-p
Scaled(p) -1000
Default -1001

 

InputEvent
Used in notifications 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
DisplayBeep    
LockWindowScreen <stem/V> Note
ScreenInfo <stem/V>,[screen] Used to obtain screen info.
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 public 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 resets the cycle chain.
SnapShot    
ToBack    
ToFront    
UnLockWindowScreen   Note
UnSnapShot    

 

LockWindowScreen UnLockWindowScreen
When you want to open a window 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 may be used to lock the screen a window is using and to obtain its name. This screen is:

As soon as possible, the screen should be unlocked using the method UnLockWindowScreen or strange things might 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