AreaListText Class Reference

#include <area_list_text.h>

Inheritance diagram for AreaListText:

AreaTabletScrolled AreaTablet Area ButtonBitmapped ButtonBase List of all members.

Public Member Functions

 AreaListText (TWindow *menu, char *identbranch, FONT *afont)
void set_optionlist (char **aoptionlist, int color)
void set_optionlist (char **aoptionlist, int aN, int color)
void add_optionlist (char *newstr, char *extrainfo)
void set_selected (int iy)
void set_selected (char *s, int idefault)
char * get_selected ()
int getk ()
virtual void handle_rpress ()

Detailed Description

Draws a list of text strings onto a background. Each item in the list occupies a single line, whether there's a return or not. This class returns the string or line number that's selected. This must support a scroll-bar, in case the list does not fit in the box.


Constructor & Destructor Documentation

AreaListText::AreaListText TWindow menu,
char *  identbranch,
FONT *  afont
 

constructor


Member Function Documentation

void AreaListText::add_optionlist char *  newstr,
char *  extrainfo
 

add one item to an existing list. This routine also allows one to store additional information

char * AreaListText::get_selected  ) 
 

returns the string pointed to

int AreaListText::getk  ) 
 

gets the index pointed to

void AreaListText::handle_rpress  )  [virtual]
 

select and center the list on "that" item

Reimplemented from ButtonBase.

void AreaListText::set_optionlist char **  aoptionlist,
int  aN,
int  color
 

overwrite a list. This does not set additional info

void AreaListText::set_optionlist char **  aoptionlist,
int  color
 

overwrite a list. This does not set additional info

void AreaListText::set_selected char *  s,
int  idefault
 

Set the list index to the first entry matching the string, or to the default value

void AreaListText::set_selected int  iy  ) 
 

Set the list index to specified value


The documentation for this class was generated from the following files:
Generated on Tue Feb 14 13:48:44 2006 for Twgui by  doxygen 1.4.6-NO