![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
A Scroll Pane is a menu pane which provides scrolling of menu entries. More...
#include <FXScrollPane.h>
Public Member Functions | |
FXScrollPane (FXWindow *owner, FXint nvis, FXuint opts=0) | |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual void | show () |
virtual void | layout () |
FXint | getNumVisible () const |
void | setNumVisible (FXint nvis) |
FXint | getTopItem () const |
void | setTopItem (FXint t) |
virtual | ~FXScrollPane () |
A Scroll Pane is a menu pane which provides scrolling of menu entries.
It is useful when menus are populated programmatically and it is not known in advance how many entries will be added.
Construct menu pane.
virtual FX::FXScrollPane::~FXScrollPane | ( | ) | [virtual] |
Destroy.
virtual FXint FX::FXScrollPane::getDefaultWidth | ( | ) | [virtual] |
Return the default width of this window.
Reimplemented from FX::FXPopup.
virtual FXint FX::FXScrollPane::getDefaultHeight | ( | ) | [virtual] |
Return the default height of this window.
Reimplemented from FX::FXPopup.
virtual void FX::FXScrollPane::show | ( | ) | [virtual] |
Show this window.
Reimplemented from FX::FXPopup.
virtual void FX::FXScrollPane::layout | ( | ) | [virtual] |
Perform layout.
Reimplemented from FX::FXPopup.
FXint FX::FXScrollPane::getNumVisible | ( | ) | const [inline] |
Return number of visible items.
void FX::FXScrollPane::setNumVisible | ( | FXint | nvis | ) |
Change the number of visible items.
FXint FX::FXScrollPane::getTopItem | ( | ) | const [inline] |
Get index of top most menu item.
void FX::FXScrollPane::setTopItem | ( | FXint | t | ) |
Scroll item to top.
![]() |