![]() |
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 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:
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 bool 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 | ) |
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.
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] |
![]() |