Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXScrollPane Class Reference

A Scroll Pane is a menu pane which provides scrolling of menu entries. More...

#include <FXScrollPane.h>

Inheritance diagram for FX::FXScrollPane:

FX::FXMenuPane FX::FXPopup FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

FX::FXScrollPane::FXScrollPane FXWindow owner,
FXint  nvis,
FXuint  opts = 0
 

Construct menu pane.

virtual FX::FXScrollPane::~FXScrollPane  )  [virtual]
 

Destroy.


Member Function Documentation

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.

Copyright © 1997-2005 Jeroen van der Zijp