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

FX::FXMDIChild Class Reference

The MDI child window contains the application work area in a Multiple Document Interface application. More...

#include <FXMDIChild.h>

Inheritance diagram for FX::FXMDIChild:

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

Public Member Functions

virtual long onDefault (FXObject *, FXSelector, void *)
 FXMDIChild (FXMDIClient *p, const FXString &name, FXIcon *ic=NULL, FXPopup *pup=NULL, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual void create ()
virtual void detach ()
virtual void layout ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void setFocus ()
virtual FXbool canFocus () const
virtual void move (FXint x, FXint y)
virtual void resize (FXint w, FXint h)
virtual void position (FXint x, FXint y, FXint w, FXint h)
void setNormalX (FXint x)
void setNormalY (FXint y)
void setNormalWidth (FXint w)
void setNormalHeight (FXint h)
FXint getNormalX () const
FXint getNormalY () const
FXint getNormalWidth () const
FXint getNormalHeight () const
void setIconX (FXint x)
void setIconY (FXint y)
void setIconWidth (FXint w)
void setIconHeight (FXint h)
FXint getIconX () const
FXint getIconY () const
FXint getIconWidth () const
FXint getIconHeight () const
FXWindowcontentWindow () const
void setTitle (const FXString &name)
FXString getTitle () const
FXColor getHiliteColor () const
FXColor getShadowColor () const
FXColor getBaseColor () const
FXColor getBorderColor () const
FXColor getTitleColor () const
FXColor getTitleBackColor () const
void setHiliteColor (FXColor clr)
void setShadowColor (FXColor clr)
void setBaseColor (FXColor clr)
void setBorderColor (FXColor clr)
void setTitleColor (FXColor clr)
void setTitleBackColor (FXColor clr)
virtual FXbool maximize (FXbool notify=FALSE)
virtual FXbool minimize (FXbool notify=FALSE)
virtual FXbool restore (FXbool notify=FALSE)
virtual FXbool close (FXbool notify=FALSE)
FXbool isMaximized () const
FXbool isMinimized () const
FXIcongetIcon () const
void setIcon (FXIcon *icon)
FXPopupgetMenu () const
void setMenu (FXPopup *menu)
void setTracking (FXbool tracking=TRUE)
FXbool getTracking () const
void setFont (FXFont *fnt)
FXFontgetFont () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXMDIChild ()

Detailed Description

The MDI child window contains the application work area in a Multiple Document Interface application.

GUI Controls are connected to the MDI child via delegation through the MDI client, which forwards messages it receives to the active MDI child. The MDI child itself tries to further delegate messages to its single content window, and if not handled there, to its target object. When the MDI child is maximized, it sends a SEL_MAXIMIZE message; when the MDI child is minimized, it sends a SEL_MINIMIZE message. When it is restored, it sends a SEL_RESTORE message to its target. The MDI child also notifies its target when it becomes the active MDI child, via the SEL_SELECTED message. The void* in the SEL_SELECTED message refers to the previously active MDI child, if any. When an MDI child ceases to be the active one, a SEL_DESELECTED message is sent. The void* in the SEL_DESELECTED message refers to the newly activated MDI child, if any. Thus, interception of SEL_SELECTED and SEL_DESELECTED allows the target object to determine whether the user switched between MDI windows of the same document (target) or between MDI windows belonging to the same document. When the MDI child is closed, it sends a SEL_CLOSE message to its target. The target has an opportunity to object to the closing; if the MDI child should not be closed, it should return 1 (objection). If the MDI child should be closed, the target can either just return 0 or simply not handle the SEL_CLOSE message. The SEL_UPDATE message can be used to modify the MDI child's title (via ID_SETSTRINGVALUE), and window icon (via ID_SETICONVALUE).

See also:


Constructor & Destructor Documentation

FX::FXMDIChild::FXMDIChild FXMDIClient p,
const FXString name,
FXIcon ic = NULL,
FXPopup pup = NULL,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct MDI Child window with given name and icon.

virtual FX::FXMDIChild::~FXMDIChild  )  [virtual]
 

Destroy.


Member Function Documentation

virtual long FX::FXMDIChild::onDefault FXObject ,
FXSelector  ,
void * 
[virtual]
 

Called for unhandled messages.

Reimplemented from FX::FXObject.

virtual void FX::FXMDIChild::create  )  [virtual]
 

Create window.

Reimplemented from FX::FXComposite.

virtual void FX::FXMDIChild::detach  )  [virtual]
 

Detach window.

Reimplemented from FX::FXComposite.

virtual void FX::FXMDIChild::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXComposite.

virtual FXint FX::FXMDIChild::getDefaultWidth  )  [virtual]
 

Return the default width of this window.

Reimplemented from FX::FXComposite.

virtual FXint FX::FXMDIChild::getDefaultHeight  )  [virtual]
 

Return the default height of this window.

Reimplemented from FX::FXComposite.

virtual void FX::FXMDIChild::setFocus  )  [virtual]
 

Move the focus to this window.

Reimplemented from FX::FXWindow.

virtual FXbool FX::FXMDIChild::canFocus  )  const [virtual]
 

MDI Child can receive focus.

Reimplemented from FX::FXWindow.

virtual void FX::FXMDIChild::move FXint  x,
FXint  y
[virtual]
 

Move this window to the specified position in the parent's coordinates.

Reimplemented from FX::FXWindow.

virtual void FX::FXMDIChild::resize FXint  w,
FXint  h
[virtual]
 

Resize this window to the specified width and height.

Reimplemented from FX::FXWindow.

virtual void FX::FXMDIChild::position FXint  x,
FXint  y,
FXint  w,
FXint  h
[virtual]
 

Move and resize this window in the parent's coordinates.

Reimplemented from FX::FXWindow.

void FX::FXMDIChild::setNormalX FXint  x  )  [inline]
 

Change normal (restored) position.

FXint FX::FXMDIChild::getNormalX  )  const [inline]
 

Return normal (restored) position.

void FX::FXMDIChild::setIconX FXint  x  )  [inline]
 

Change iconified position.

FXint FX::FXMDIChild::getIconX  )  const [inline]
 

Return iconified position.

FXWindow* FX::FXMDIChild::contentWindow  )  const
 

Return content window.

void FX::FXMDIChild::setTitle const FXString name  ) 
 

Change MDI Child's title.

FXString FX::FXMDIChild::getTitle  )  const [inline]
 

Get current title.

FXColor FX::FXMDIChild::getHiliteColor  )  const [inline]
 

Get colors.

void FX::FXMDIChild::setHiliteColor FXColor  clr  ) 
 

Change colors.

virtual FXbool FX::FXMDIChild::maximize FXbool  notify = FALSE  )  [virtual]
 

Maximize MDI window, return TRUE if maximized.

virtual FXbool FX::FXMDIChild::minimize FXbool  notify = FALSE  )  [virtual]
 

Minimize/iconify MDI window, return TRUE if minimized.

virtual FXbool FX::FXMDIChild::restore FXbool  notify = FALSE  )  [virtual]
 

Restore MDI window to normal, return TRUE if restored.

virtual FXbool FX::FXMDIChild::close FXbool  notify = FALSE  )  [virtual]
 

Close MDI window, return TRUE if actually closed.

FXbool FX::FXMDIChild::isMaximized  )  const
 

Return TRUE if maximized.

FXbool FX::FXMDIChild::isMinimized  )  const
 

Return TRUE if minimized.

FXIcon* FX::FXMDIChild::getIcon  )  const
 

Get window icon.

void FX::FXMDIChild::setIcon FXIcon icon  ) 
 

Set window icon.

FXPopup* FX::FXMDIChild::getMenu  )  const
 

Get window menu.

void FX::FXMDIChild::setMenu FXPopup menu  ) 
 

Set window menu.

void FX::FXMDIChild::setTracking FXbool  tracking = TRUE  ) 
 

Set tracking instead of just outline.

FXbool FX::FXMDIChild::getTracking  )  const
 

Return true if tracking.

void FX::FXMDIChild::setFont FXFont fnt  ) 
 

Set title font.

FXFont* FX::FXMDIChild::getFont  )  const [inline]
 

Get title font.

virtual void FX::FXMDIChild::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXWindow.

virtual void FX::FXMDIChild::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXWindow.

Copyright © 1997-2005 Jeroen van der Zijp