Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXMDIClient Class Reference

#include <FXMDIClient.h>

Inheritance diagram for FXMDIClient:

FXScrollArea FXComposite FXWindow FXDrawable FXId FXObject List of all members.

Public Types

enum  {
  ID_MDI_ANY = 65400,
  ID_MDI_1,
  ID_MDI_2,
  ID_MDI_3,
  ID_MDI_4,
  ID_MDI_5,
  ID_MDI_6,
  ID_MDI_7,
  ID_MDI_8,
  ID_MDI_9,
  ID_MDI_10,
  ID_LAST
}

Public Methods

virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.

 FXMDIClient (FXComposite *p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct MDI Client window.

virtual void recalc ()
 Recalculate interior for scrollbars.

virtual void moveContents (FXint x, FXint y)
 Move MDI Children around.

FXMDIChildgetMDIChildFirst () const
 Get first MDI Child.

FXMDIChildgetMDIChildLast () const
 Get last MDI Child.

long forallWindows (FXObject *sender, FXSelector sel, void *ptr)
 Pass message to all MDI Child windows.

long forallDocWindows (FXObject *document, FXObject *sender, FXSelector sel, void *ptr)
 Pass message to all MDI Child windows whose target is document.

virtual FXint getContentWidth ()
 Recompute content width.

virtual FXint getContentHeight ()
 Recompute content height.

FXMDIChildgetActiveChild () const
 Get current active child; may be NULL!

FXbool setActiveChild (FXMDIChild *child=NULL, FXbool notify=TRUE)
 Set active MDI Child.

void setCascadeX (FXint off)
 Change cascade offset X.

void setCascadeY (FXint off)
 Change cascade offset Y.

FXint getCascadeX () const
 Get cascade offset X.

FXint getCascadeY () const
 Get cascade offset Y.

virtual void save (FXStream &store) const
 Save object to a stream.

virtual void load (FXStream &store)
 Load object from a stream.

virtual ~FXMDIClient ()
 Destructor.


Friends

class FXMDIChild

Detailed Description

The MDI client window manages a number of MDI child windows in a multiple-document interface (MDI) application. MDI child windows usually receive messages from the GUI through delegation via the MDI client, i.e. the MDI client window is set as the target for most GUI commands; the MDI client filters out a few messages and forwards all other messages to the active MDI child. MDI client can arrange the MDI child windows in various ways:- it may maximize one of the MDI child windows, arrange them side-by-side, cascade them, or iconify them. MDI child windows are notified about changes in the active MDI child window by the MDI client.