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

FX::FXMDIClient Class Reference

#include <FXMDIClient.h>

Inheritance diagram for FX::FXMDIClient:

FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

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 FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

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 FXbool setActiveChild (FXMDIChild *child=NULL, FXbool notify=TRUE)
 Set active MDI Child.

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

virtual void cascade (FXbool notify=FALSE)
virtual void horizontal (FXbool notify=FALSE)
virtual void vertical (FXbool notify=FALSE)
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.