![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
The MDI child window contains the application work area in a Multiple Document Interface application. More...
#include <FXMDIChild.h>
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onEnter (FXObject *, FXSelector, void *) |
| long | onLeave (FXObject *, FXSelector, void *) |
| long | onFocusSelf (FXObject *, FXSelector, void *) |
| long | onFocusIn (FXObject *, FXSelector, void *) |
| long | onFocusOut (FXObject *, FXSelector, void *) |
| long | onRightBtnPress (FXObject *, FXSelector, void *) |
| long | onRightBtnRelease (FXObject *, FXSelector, void *) |
| long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| long | onMiddleBtnPress (FXObject *, FXSelector, void *) |
| long | onMiddleBtnRelease (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| long | onSelected (FXObject *, FXSelector, void *) |
| long | onDeselected (FXObject *, FXSelector, void *) |
| long | onCmdClose (FXObject *, FXSelector, void *) |
| long | onUpdClose (FXObject *, FXSelector, void *) |
| long | onCmdRestore (FXObject *, FXSelector, void *) |
| long | onUpdRestore (FXObject *, FXSelector, void *) |
| long | onUpdMaximize (FXObject *, FXSelector, void *) |
| long | onUpdMinimize (FXObject *, FXSelector, void *) |
| long | onCmdMaximize (FXObject *, FXSelector, void *) |
| long | onCmdMinimize (FXObject *, FXSelector, void *) |
| long | onUpdWindow (FXObject *, FXSelector, void *) |
| long | onUpdMenuRestore (FXObject *, FXSelector, void *) |
| long | onUpdMenuMinimize (FXObject *, FXSelector, void *) |
| long | onUpdMenuClose (FXObject *, FXSelector, void *) |
| long | onUpdMenuWindow (FXObject *, FXSelector, void *) |
| long | onCmdSetStringValue (FXObject *, FXSelector, void *) |
| long | onCmdGetStringValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIconValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIconValue (FXObject *, FXSelector, void *) |
| virtual long | onDefault (FXObject *, FXSelector, void *) |
| Called for unhandled messages. | |
| 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 void | create () |
| Create window. | |
| virtual void | detach () |
| Detach window. | |
| virtual void | layout () |
| Perform layout. | |
| virtual FXint | getDefaultWidth () |
| Return the default width of this window. | |
| virtual FXint | getDefaultHeight () |
| Return the default height of this window. | |
| virtual void | setFocus () |
| Move the focus to this window. | |
| virtual FXbool | canFocus () const |
| MDI Child can receive focus. | |
| virtual void | move (FXint x, FXint y) |
| Move this window to the specified position in the parent's coordinates. | |
| virtual void | resize (FXint w, FXint h) |
| Resize this window to the specified width and height. | |
| virtual void | position (FXint x, FXint y, FXint w, FXint h) |
| Move and resize this window in the parent's coordinates. | |
| void | setNormalX (FXint x) |
| Change normal (restored) position. | |
| void | setNormalY (FXint y) |
| void | setNormalWidth (FXint w) |
| void | setNormalHeight (FXint h) |
| FXint | getNormalX () const |
| Return normal (restored) position. | |
| FXint | getNormalY () const |
| FXint | getNormalWidth () const |
| FXint | getNormalHeight () const |
| void | setIconX (FXint x) |
| Change iconified position. | |
| void | setIconY (FXint y) |
| void | setIconWidth (FXint w) |
| void | setIconHeight (FXint h) |
| FXint | getIconX () const |
| Return iconified position. | |
| FXint | getIconY () const |
| FXint | getIconWidth () const |
| FXint | getIconHeight () const |
| FXWindow * | contentWindow () const |
| Return content window. | |
| void | setTitle (const FXString &name) |
| Change MDI Child's title. | |
| FXString | getTitle () const |
| Get current title. | |
| FXColor | getHiliteColor () const |
| Get colors. | |
| FXColor | getShadowColor () const |
| FXColor | getBaseColor () const |
| FXColor | getBorderColor () const |
| FXColor | getTitleColor () const |
| FXColor | getTitleBackColor () const |
| void | setHiliteColor (FXColor clr) |
| Change colors. | |
| void | setShadowColor (FXColor clr) |
| void | setBaseColor (FXColor clr) |
| void | setBorderColor (FXColor clr) |
| void | setTitleColor (FXColor clr) |
| void | setTitleBackColor (FXColor clr) |
| virtual FXbool | restore (FXbool notify=false) |
| Restore MDI window to normal, return true if restored. | |
| virtual FXbool | maximize (FXbool notify=false) |
| Maximize MDI window, return true if maximized. | |
| virtual FXbool | minimize (FXbool notify=false) |
| Minimize/iconify MDI window, return true if minimized. | |
| virtual FXbool | close (FXbool notify=false) |
| Close MDI window, return true if actually closed. | |
| FXbool | isMaximized () const |
| Return true if maximized. | |
| FXbool | isMinimized () const |
| Return true if minimized. | |
| FXIcon * | getIcon () const |
| Get window icon. | |
| void | setIcon (FXIcon *icon) |
| Set window icon. | |
| FXPopup * | getMenu () const |
| Get window menu. | |
| void | setMenu (FXPopup *menu) |
| Set window menu. | |
| void | setTracking (FXbool tracking=true) |
| Set tracking instead of just outline. | |
| FXbool | getTracking () const |
| Return true if tracking. | |
| void | setFont (FXFont *fnt) |
| Set title font. | |
| FXFont * | getFont () const |
| Get title font. | |
| virtual void | save (FXStream &store) const |
| Save to stream. | |
| virtual void | load (FXStream &store) |
| Load from stream. | |
| virtual | ~FXMDIChild () |
| Destroy. | |
Protected Types | |
| enum | { DRAG_NONE = 0, DRAG_TOP = 1, DRAG_BOTTOM = 2, DRAG_LEFT = 4, DRAG_RIGHT = 8, DRAG_TOPLEFT = (DRAG_TOP|DRAG_LEFT), DRAG_TOPRIGHT = (DRAG_TOP|DRAG_RIGHT), DRAG_BOTTOMLEFT = (DRAG_BOTTOM|DRAG_LEFT), DRAG_BOTTOMRIGHT = (DRAG_BOTTOM|DRAG_RIGHT), DRAG_INVERTED = 16, DRAG_TITLE = 32 } |
Protected Member Functions | |
| void | drawRubberBox (FXint x, FXint y, FXint w, FXint h) |
| void | animateRectangles (FXint ox, FXint oy, FXint ow, FXint oh, FXint nx, FXint ny, FXint nw, FXint nh) |
| FXuchar | where (FXint x, FXint y) const |
| void | changeCursor (FXuchar which) |
Protected Attributes | |
| FXString | title |
| FXMenuButton * | windowbtn |
| FXButton * | minimizebtn |
| FXButton * | restorebtn |
| FXButton * | maximizebtn |
| FXButton * | deletebtn |
| FXFont * | font |
| FXColor | baseColor |
| FXColor | hiliteColor |
| FXColor | shadowColor |
| FXColor | borderColor |
| FXColor | titleColor |
| FXColor | titleBackColor |
| FXint | iconPosX |
| FXint | iconPosY |
| FXint | iconWidth |
| FXint | iconHeight |
| FXint | normalPosX |
| FXint | normalPosY |
| FXint | normalWidth |
| FXint | normalHeight |
| FXint | spotx |
| FXint | spoty |
| FXint | xoff |
| FXint | yoff |
| FXint | newx |
| FXint | newy |
| FXint | neww |
| FXint | newh |
| FXuchar | mode |
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 window, a SEL_DESELECTED message is sent to its target, and 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 merely between two MDI windows belonging to the same document. When the MDI child is closed, it first sends a SEL_DESELECTED to its target to notify it that it is no longer the active window; next, it sends a SEL_CLOSE message to its target to allow the target to clean up (for example, destroy the document if this was the last window of the document). The target can prevent the MDI child window from being closed by returning 1 from the SEL_CLOSE message handler (objection). If the target returns 0 or does not handle the SEL_CLOSE message, the MDI child will be closed. If the MDI child windows was not closed, the child window will be reselected as the currently active MDI child widget, and a SEL_SELECTED will be sent to its target to notify it of this fact. The SEL_UPDATE message can be used to modify the MDI child's title (via ID_SETSTRINGVALUE), and window icon (via ID_SETICONVALUE).
|
|