![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXMDIChild.h>
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).
See also:
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.
virtual long FX::FXMDIChild::onDefault | ( | FXObject * | , | |
FXSelector | , | |||
void * | ||||
) | [virtual] |
virtual void FX::FXMDIChild::create | ( | ) | [virtual] |
virtual void FX::FXMDIChild::detach | ( | ) | [virtual] |
virtual void FX::FXMDIChild::layout | ( | ) | [virtual] |
virtual FXint FX::FXMDIChild::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXMDIChild::getDefaultHeight | ( | ) | [virtual] |
virtual void FX::FXMDIChild::setFocus | ( | ) | [virtual] |
virtual FXbool FX::FXMDIChild::canFocus | ( | ) | const [virtual] |
Move this window to the specified position in the parent's coordinates.
Reimplemented from FX::FXWindow.
void FX::FXMDIChild::setNormalX | ( | FXint | x | ) | [inline] |
Change normal (restored) position.
void FX::FXMDIChild::setNormalY | ( | FXint | y | ) | [inline] |
void FX::FXMDIChild::setNormalWidth | ( | FXint | w | ) | [inline] |
void FX::FXMDIChild::setNormalHeight | ( | FXint | h | ) | [inline] |
FXint FX::FXMDIChild::getNormalX | ( | ) | const [inline] |
Return normal (restored) position.
FXint FX::FXMDIChild::getNormalY | ( | ) | const [inline] |
FXint FX::FXMDIChild::getNormalWidth | ( | ) | const [inline] |
FXint FX::FXMDIChild::getNormalHeight | ( | ) | const [inline] |
void FX::FXMDIChild::setIconX | ( | FXint | x | ) | [inline] |
Change iconified position.
void FX::FXMDIChild::setIconY | ( | FXint | y | ) | [inline] |
void FX::FXMDIChild::setIconWidth | ( | FXint | w | ) | [inline] |
void FX::FXMDIChild::setIconHeight | ( | FXint | h | ) | [inline] |
FXint FX::FXMDIChild::getIconX | ( | ) | const [inline] |
Return iconified position.
FXint FX::FXMDIChild::getIconY | ( | ) | const [inline] |
FXint FX::FXMDIChild::getIconWidth | ( | ) | const [inline] |
FXint FX::FXMDIChild::getIconHeight | ( | ) | const [inline] |
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.
FXColor FX::FXMDIChild::getShadowColor | ( | ) | const [inline] |
FXColor FX::FXMDIChild::getBaseColor | ( | ) | const [inline] |
FXColor FX::FXMDIChild::getBorderColor | ( | ) | const [inline] |
FXColor FX::FXMDIChild::getTitleColor | ( | ) | const [inline] |
FXColor FX::FXMDIChild::getTitleBackColor | ( | ) | const [inline] |
void FX::FXMDIChild::setHiliteColor | ( | FXColor | clr | ) |
Change colors.
void FX::FXMDIChild::setShadowColor | ( | FXColor | clr | ) |
void FX::FXMDIChild::setBaseColor | ( | FXColor | clr | ) |
void FX::FXMDIChild::setBorderColor | ( | FXColor | clr | ) |
void FX::FXMDIChild::setTitleColor | ( | FXColor | clr | ) |
void FX::FXMDIChild::setTitleBackColor | ( | FXColor | clr | ) |
Restore MDI window to normal, return true if restored.
Maximize MDI window, return true if maximized.
Minimize/iconify MDI window, return true if minimized.
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] |
virtual void FX::FXMDIChild::load | ( | FXStream & | store | ) | [virtual] |
![]() |