Base class for all windows
Constructor.
Argument | Type | Default | Description |
p | FXComposite | ||
opts | Int | 0 | |
x | Int | 0 | |
y | Int | 0 | |
w | Int | 0 | |
h | Int | 0 |
Return True if this window is a control capable of receiving the focus.
Reimplemented in FXArrowButton, FXButton, FXCanvas, FXCheckButton, FXColorWell, FXDockHandler, FXIconList, FXImageView, FXList, FXMDIChild, FXMenuButton, FXMenuCascade, FXMenuCommand, FXMenuTitle, FXOption, FXOptionMenu, FXRadioButton, FXSlider, FXTabItem, FXTable, FXText, FXTextField, FXToggleButton, FXToolbarTab, FXTreeList, AFXBaseTable, AFXFloatSpinner, AFXFlyoutButton, AFXFlyoutItem, and AFXSlider.
Return the child window at specified index, or NULL if the index is negative or out of range
Reimplemented in AFXOptionTreeItem.
Argument | Type | Default | Description |
index | Int |
Return True if specified window is a child of this window.
Argument | Type | Default | Description |
child | FXWindow |
Create all of the server-side resources for this window.
Reimplemented from FXId.
Reimplemented in FXColorBar, FXColorSelector, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDirBox, FXDirList, FXDockTitle, FXDriveBox, FXFileList, FXFontSelector, FXGLCanvas, FXGLViewer, FXGroupBox, FXHeader, FXIconList, FXImageView, FXLabel, FXList, FXListBox, FXMDIChild, FXMenuButton, FXMenuCaption, FXMenuCascade, FXProgressBar, FXMenuTitle, FXOptionMenu, FXPrintDialog, FXRootWindow, FXScrollWindow, FXShell, FXSpinner, FXStatusline, FXTabBar, FXTable, FXText, FXTextField, FXToggleButton, FXToolbarShell, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, AFXManagerMenuPane, AFXMainWindow, AFXPromptArea, AFXBaseTable, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXDialog, AFXFloatSpinner, AFXFlyoutButton, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXProgressBar, AFXSpinner, AFXTable, AFXTextField, and AFXVerticalAligner.
Destroy the server-side resources for this window.
Reimplemented from FXId.
Reimplemented in FXComboBox, FXComposite, FXDirBox, FXDirList, FXDriveBox, FXFileList, FXGLCanvas, FXListBox, FXMenuCascade, FXOptionMenu, FXRootWindow, FXTreeList, FXTreeListBox, AFXManagerMenuCascade, AFXColorFlyout, and AFXTable.
Detach the server-side resources for this window.
Reimplemented from FXId.
Reimplemented in FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDirBox, FXDirList, FXDockTitle, FXDriveBox, FXFileList, FXGLCanvas, FXGLViewer, FXGroupBox, FXHeader, FXIconList, FXImageView, FXLabel, FXList, FXListBox, FXMDIChild, FXMenuButton, FXMenuCaption, FXMenuCascade, FXProgressBar, FXMenuTitle, FXOptionMenu, FXRootWindow, FXStatusline, FXTable, FXText, FXToggleButton, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, AFXBaseTable, AFXColorFlyout, AFXFlyoutButton, AFXNote, and AFXTable.
Disable the window from receiving mouse and keyboard events.
Reimplemented in FXArrowButton, FXComboBox, FXGroupBox, FXLabel, FXListBox, FXMenuCaption, FXScrollCorner, FXSlider, FXSpinner, FXText, FXTextField, FXToolbarTab, FXTreeListBox, AFXAutoComputeGroup, AFXManagerMenuDB, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXFloatSpinner, AFXFlyoutButton, AFXList, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXSlider, AFXSpinner, AFXTable, and AFXTextField.
Enable the window to receive mouse and keyboard events.
Reimplemented in FXArrowButton, FXComboBox, FXGroupBox, FXLabel, FXListBox, FXMenuCaption, FXScrollCorner, FXSlider, FXSpinner, FXText, FXTextField, FXToolbarTab, FXTreeListBox, AFXAutoComputeGroup, AFXManagerMenuDB, AFXColorButton, AFXColorFlyout, AFXComboBox, AFXFloatSpinner, AFXFlyoutButton, AFXList, AFXListBox, AFXNote, AFXOptionTreeItem, AFXPrimFloatSpinner, AFXSlider, AFXSpinner, AFXTable, and AFXTextField.
Returns a sequence of (status, x, y, mouseButtonState) representing the relative location of the cursor in the widget.
Return the default height of this window.
Reimplemented in FX4Splitter, FXArrowButton, FXCheckButton, FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDial, FXDockSite, FXDockTitle, FXDragCorner, FXFrame, FXGroupBox, FXHeader, FXHorizontalFrame, FXLabel, FXList, FXListBox, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMDIChild, FXMatrix, FXMenuButton, FXMenuCaption, FXMenuCommand, FXProgressBar, FXMenuSeparator, FXMenuTitle, FXOption, FXOptionMenu, FXPacker, FXPopup, FXRadioButton, FXRootWindow, FXScrollArea, FXScrollbar, FXHorizontalSeparator, FXVerticalSeparator, FXSlider, FXSpinner, FXSplitter, FXStatusbar, FXStatusline, FXSwitcher, FXTabBar, FXTabBook, FXTable, FXText, FXTextField, FXToggleButton, FXToolbar, FXToolbarGrip, FXToolbarShell, FXToolbarTab, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, FXVerticalFrame, AFXMainWindow, AFXToolbarGroup, AFXBaseTable, AFXList, AFXOptionTreeList, AFXPrimFloatSpinner, AFXProgressBar, AFXSlider, AFXTable, AFXTreeTable, and AFXVerticalAligner.
Return the default width of this window.
Reimplemented in FX4Splitter, FXArrowButton, FXCheckButton, FXColorBar, FXColorWell, FXColorWheel, FXComboBox, FXComposite, FXDial, FXDockSite, FXDockTitle, FXDragCorner, FXFrame, FXGroupBox, FXHeader, FXHorizontalFrame, FXLabel, FXList, FXListBox, FXMDIDeleteButton, FXMDIRestoreButton, FXMDIMaximizeButton, FXMDIMinimizeButton, FXMDIWindowButton, FXMDIChild, FXMatrix, FXMenuButton, FXMenuCaption, FXMenuCommand, FXProgressBar, FXMenuSeparator, FXMenuTitle, FXOption, FXOptionMenu, FXPacker, FXPopup, FXRadioButton, FXRootWindow, FXScrollArea, FXScrollbar, FXHorizontalSeparator, FXVerticalSeparator, FXSlider, FXSpinner, FXSplitter, FXStatusbar, FXStatusline, FXSwitcher, FXTabBar, FXTabBook, FXTable, FXText, FXTextField, FXToggleButton, FXToolbar, FXToolbarGrip, FXToolbarShell, FXToolbarTab, FXTooltip, FXTopWindow, FXTreeList, FXTreeListBox, FXVerticalFrame, AFXMainWindow, AFXToolbarGroup, AFXBaseTable, AFXOptionTreeItem, AFXOptionTreeList, AFXPrimFloatSpinner, AFXProgressBar, AFXSlider, AFXTable, AFXTextField, AFXTreeTable, and AFXVerticalAligner.
Return a pointer to this window's first child window , if any.
Reimplemented in AFXOptionTreeItem.
Return height for given width.
Reimplemented in FXDockSite.
Argument | Type | Default | Description |
givenwidth | Int |
Return a pointer to this window's last child window, if any.
Reimplemented in AFXOptionTreeItem.
Return a pointer to the next (sibling) window, if any.
Reimplemented in AFXOptionTreeItem.
Return a pointer to the owner window.
Reimplemented in AFXMenuCascade, AFXMenuCommand, AFXMenuPane, AFXMenuTitle, AFXToolbarGroup, and AFXToolboxGroup.
Return a pointer to the previous (sibling) window , if any.
Reimplemented in AFXOptionTreeItem.
Return width for given height.
Reimplemented in FXDockSite.
Argument | Type | Default | Description |
givenheight | Int |
Grab the mouse to this window; future mouse events will be reported to this window even while the cursor goes outside of this window
Argument | Type | Default | Description |
confineTo | FXWindow | None |
Hide this window.
Reimplemented in FXTopWindow, AFXManagerMenuDB, AFXMenuTitle, AFXToolbarGroup, AFXToolbarGroupRender, AFXToolbarGroupVisibility, AFXDialog, AFXFlyoutItem, AFXMessageDialog, AFXOptionTreeItem, and AFXProgressBar.
Return the index (starting from zero) of the specified child window, or -1 if the window is not a child or NULL
Argument | Type | Default | Description |
window | FXWindow |
Return True if specified window is this window's parent.
Argument | Type | Default | Description |
window | FXWindow |
Relink this window after sibling in the window list.
Argument | Type | Default | Description |
sibling | FXWindow |
Relink this window before sibling in the window list.
Argument | Type | Default | Description |
sibling | FXWindow |
Move this window to the specified position in the parent's coordinates.
Reimplemented in FXMDIChild, FXRootWindow, and FXTopWindow.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Return the number of child windows for this window.
Reimplemented in AFXOptionTreeItem.
Move and resize this window in the parent's coordinates.
Reimplemented in FXIconList, FXMDIChild, FXRootWindow, FXText, and FXTopWindow.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int |
Mark this window's layout as dirty.
Reimplemented in FXIconList, FXList, FXMDIClient, FXRootWindow, FXShell, FXTable, FXText, FXTreeList, AFXBaseTable, AFXSlider, and AFXTable.
If marked but not yet painted, paint the given area.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int |
Resize this window to the specified width and height.
Reimplemented from FXDrawable.
Reimplemented in FXIconList, FXMDIChild, FXRootWindow, FXText, and FXTopWindow.
Argument | Type | Default | Description |
w | Int | ||
h | Int |
Set window background color.
Reimplemented in FXComboBox, and FXListBox.
Argument | Type | Default | Description |
clr | FXColor |
Warp the cursor to the new position.
Argument | Type | Default | Description |
x | Int | ||
y | Int |
Move the focus to this window.
Reimplemented in FXButton, FXColorWell, FXIconList, FXList, FXMenuCascade, FXMenuCommand, FXMenuTitle, FXOption, FXPopup, FXRootWindow, FXShell, FXTable, FXText, FXTextField, FXTopWindow, FXTreeList, AFXBaseTable, AFXFlyoutItem, and AFXTextField.
Make this window the initial default window.
Argument | Type | Default | Description |
enable | Bool | True |
Set layout hints for this window.
Argument | Type | Default | Description |
lout | Int |
Set the message identifier for this window.
Argument | Type | Default | Description |
sel | Int |
Set the message target object for this window.
Argument | Type | Default | Description |
t | FXObject |
Set this window's x-coordinate, in the parent's coordinate system.
Argument | Type | Default | Description |
x | Int |
Set this window's y-coordinate, in the parent's coordinate system.
Argument | Type | Default | Description |
y | Int |
Show this window.
Reimplemented in FXTooltip, FXTopWindow, AFXMenuTitle, AFXToolbarGroup, AFXToolbarGroupRender, AFXToolbarGroupVisibility, AFXDialog, AFXFileDialog, AFXMessageDialog, AFXOptionTreeItem, AFXProgressBar, and AFXSlider.
Translate coordinates from this window's coordinate space to towindow's coordinate space.
Argument | Type | Default | Description |
tox | Int | ||
toy | Int | ||
towindow | FXWindow | ||
fromx | Int | ||
fromy | Int |
Mark the specified rectangle dirty, i.e. to be repainted.
Argument | Type | Default | Description |
x | Int | ||
y | Int | ||
w | Int | ||
h | Int |
Layout hints for child widgets
LAYOUT_NORMAL | Default layout mode. |
LAYOUT_SIDE_TOP | Pack on top side (default). |
LAYOUT_SIDE_BOTTOM | Pack on bottom side. |
LAYOUT_SIDE_LEFT | Pack on left side. |
LAYOUT_SIDE_RIGHT | Pack on right side. |
LAYOUT_FILL_COLUMN | Matrix column is stretchable. |
LAYOUT_FILL_ROW | Matrix row is stretchable. |
LAYOUT_LEFT | Stick on left (default). |
LAYOUT_RIGHT | Stick on right. |
LAYOUT_CENTER_X | Center horizontally. |
LAYOUT_FIX_X | X fixed. |
LAYOUT_TOP | Stick on top (default). |
LAYOUT_BOTTOM | Stick on bottom. |
LAYOUT_CENTER_Y | Center vertically. |
LAYOUT_FIX_Y | Y fixed CAE: Copied from FOX 1.4.34 to support dockable tool bars. |
LAYOUT_DOCK_SAME | Dock on same galley if it fits. |
LAYOUT_DOCK_NEXT | Dock on next galley LAYOUT_RESERVED_1 = 0x00000040, LAYOUT_RESERVED_2 = 0x00000080, |
LAYOUT_RESERVED_1 | CAE End. |
LAYOUT_FIX_WIDTH | Width fixed. |
LAYOUT_FIX_HEIGHT | height fixed |
LAYOUT_MIN_WIDTH | Minimum width is the default. |
LAYOUT_MIN_HEIGHT | Minimum height is the default. |
LAYOUT_FILL_X | Stretch or shrink horizontally. |
LAYOUT_FILL_Y | Stretch or shrink vertically. |
LAYOUT_EXPLICIT | Explicit placement. |
Frame border appearance styles (for subclasses)
FRAME_NONE | Default is no frame. |
FRAME_SUNKEN | Sunken border. |
FRAME_RAISED | Raised border. |
FRAME_THICK | Thick border. |
FRAME_GROOVE | A groove or etched-in border. |
FRAME_RIDGE | A ridge or embossed border. |
FRAME_LINE | Simple line border. |
FRAME_NORMAL | Regular raised/thick border. |
Packing style (for packers)
PACK_NORMAL | Default is each its own size. |
PACK_UNIFORM_HEIGHT | Uniform height. |
PACK_UNIFORM_WIDTH | Uniform width. |
BackgroundStyle
BACKGROUND_NORMAL | Default. |
BACKGROUND_H_GRADIENT | Horizontal gradient background. |
BACKGROUND_V_GRADIENT | Vertical gradient background. |
BACKGROUND_PLAIN | plain background |