![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Popup window is used as a container for transitional controls such as menu panes and other ephemeral windows. More...
#include <FXPopup.h>
Public Types | |
| enum | { ID_CHOICE = FXShell::ID_LAST, ID_LAST = ID_CHOICE+1000 } |
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onFocusUp (FXObject *, FXSelector, void *) |
| long | onFocusDown (FXObject *, FXSelector, void *) |
| long | onFocusLeft (FXObject *, FXSelector, void *) |
| long | onFocusRight (FXObject *, FXSelector, void *) |
| long | onFocusNext (FXObject *, FXSelector, void *) |
| long | onFocusPrev (FXObject *, FXSelector, void *) |
| long | onEnter (FXObject *, FXSelector, void *) |
| long | onLeave (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| long | onMap (FXObject *, FXSelector, void *) |
| long | onLayout (FXObject *, FXSelector, void *) |
| long | onButtonPress (FXObject *, FXSelector, void *) |
| long | onButtonRelease (FXObject *, FXSelector, void *) |
| long | onUngrabbed (FXObject *, FXSelector, void *) |
| long | onCmdUnpost (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onCmdChoice (FXObject *, FXSelector, void *) |
| FXPopup (FXWindow *owner, FXuint opts=POPUP_VERTICAL|FRAME_RAISED|FRAME_THICK, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
| Construct popup pane. | |
| virtual FXint | getDefaultWidth () |
| Return the default width of this window. | |
| virtual FXint | getDefaultHeight () |
| Return the default height of this window. | |
| virtual void | layout () |
| Perform layout. | |
| FXPopup * | getPrevActive () const |
| Return a pointer to the prior active popup. | |
| FXPopup * | getNextActive () const |
| Return a pointer to the next active popup. | |
| virtual void | setFocus () |
| Move the focus to this window. | |
| virtual void | killFocus () |
| Remove the focus from this window. | |
| virtual void | show () |
| Show this window. | |
| virtual void | hide () |
| Hide this window. | |
| void | setFrameStyle (FXuint style) |
| Change frame style. | |
| FXuint | getFrameStyle () const |
| Return frame style. | |
| FXint | getBorderWidth () const |
| Return border width. | |
| void | setHiliteColor (FXColor clr) |
| Change highlight color. | |
| FXColor | getHiliteColor () const |
| Return highlight color. | |
| void | setShadowColor (FXColor clr) |
| Change shadow color. | |
| FXColor | getShadowColor () const |
| Return shadow color. | |
| void | setBorderColor (FXColor clr) |
| Change border color. | |
| FXColor | getBorderColor () const |
| Return border color. | |
| void | setBaseColor (FXColor clr) |
| Change base color. | |
| FXColor | getBaseColor () const |
| Return base color. | |
| virtual void | popup (FXWindow *grabto, FXint x, FXint y, FXint w=0, FXint h=0) |
| Popup the menu and grab to the given owner. | |
| virtual void | popdown () |
| Pop down the menu. | |
| FXWindow * | getGrabOwner () const |
| Return current grab owner. | |
| void | setOrientation (FXuint orient) |
| Change popup orientation. | |
| FXuint | getOrientation () const |
| Return popup orientation. | |
| void | setShrinkWrap (FXbool flag) |
| Change shrinkwrap mode. | |
| FXbool | getShrinkWrap () const |
| Return shrinkwrap mode. | |
| virtual FXbool | doesSaveUnder () const |
| Does save-unders. | |
| virtual | ~FXPopup () |
| Destructor. | |
Protected Member Functions | |
| virtual FXbool | doesOverrideRedirect () const |
| void | drawBorderRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawRaisedRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawSunkenRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawRidgeRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawGrooveRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawDoubleRaisedRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawDoubleSunkenRectangle (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
| void | drawFrame (FXDCWindow &dc, FXint x, FXint y, FXint w, FXint h) |
Protected Attributes | |
| FXWindow * | grabowner |
| FXColor | baseColor |
| FXColor | hiliteColor |
| FXColor | shadowColor |
| FXColor | borderColor |
| FXint | border |
Popup window is used as a container for transitional controls such as menu panes and other ephemeral windows.
One of its principal characteristics is that no other controls, except the ones inside the popup are capable of interaction. Any click outside of a popup will cause the popup to be closed. Contents of popups may be arranged vertically (POPUP_VERTICAL) or horizontally (POPUP_HORIZONTAL). The special POPUP_SHRINKWRAP option causes the application to recompute the size of the popup window based on its contents at the time it is shown, thus permitting dynamically changing content.
|
|