Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXMDIChild.h>
Inheritance diagram for FX::FXMDIChild:
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 |
FXWindow * | contentWindow () 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 |
FXIcon * | getIcon () const |
void | setIcon (FXIcon *icon) |
FXPopup * | getMenu () const |
void | setMenu (FXPopup *menu) |
void | setTracking (FXbool tracking=TRUE) |
FXbool | getTracking () const |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXMDIChild () |
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:
|
Construct MDI Child window with given name and icon.
|
|
Destroy.
|
|
Called for unhandled messages.
Reimplemented from FX::FXObject. |
|
Create window.
Reimplemented from FX::FXComposite. |
|
Detach window.
Reimplemented from FX::FXComposite. |
|
Perform layout.
Reimplemented from FX::FXComposite. |
|
Return the default width of this window.
Reimplemented from FX::FXComposite. |
|
Return the default height of this window.
Reimplemented from FX::FXComposite. |
|
Move the focus to this window.
Reimplemented from FX::FXWindow. |
|
MDI Child can receive focus.
Reimplemented from FX::FXWindow. |
|
Move this window to the specified position in the parent's coordinates.
Reimplemented from FX::FXWindow. |
|
Resize this window to the specified width and height.
Reimplemented from FX::FXWindow. |
|
Move and resize this window in the parent's coordinates.
Reimplemented from FX::FXWindow. |
|
Change normal (restored) position.
|
|
Return normal (restored) position.
|
|
Change iconified position.
|
|
Return iconified position.
|
|
Return content window.
|
|
Change MDI Child's title.
|
|
Get current title.
|
|
Get colors.
|
|
Change colors.
|
|
Maximize MDI window, return TRUE if maximized.
|
|
Minimize/iconify MDI window, return TRUE if minimized.
|
|
Restore MDI window to normal, return TRUE if restored.
|
|
Close MDI window, return TRUE if actually closed.
|
|
Return TRUE if maximized.
|
|
Return TRUE if minimized.
|
|
Get window icon.
|
|
Set window icon.
|
|
Get window menu.
|
|
Set window menu.
|
|
Set tracking instead of just outline.
|
|
Return true if tracking.
|
|
Set title font.
|
|
Get title font.
|
|
Save to stream.
Reimplemented from FX::FXWindow. |
|
Load from stream.
Reimplemented from FX::FXWindow. |
Copyright © 1997-2005 Jeroen van der Zijp |