#include <GCombo.h>
Inheritance diagram for GCombo:
Public Member Functions | |
GCombo (int id, int x, int y, int cx, int cy, char *name) | |
Constructor. | |
bool | Sort () |
Returns whether to sort the list. | |
void | Sort (bool s) |
Sets whether to sort the list. | |
int | Sub () |
Returns whether to classify the list into submenus. | |
void | Sub (int Type) |
Makes the list of entries sort into submenus. Good for large lists. | |
void | Value (int i) |
Sets the selected item. | |
int | Value () |
Returns the select item. | |
bool | Name (char *n) |
Sets the selected item by name. | |
char * | Name () |
Returns the selected item's name. | |
GSubMenu * | GetMenu () |
Gets the menu used. | |
void | SetMenu (GSubMenu *m) |
Sets the menu used. | |
bool | Delete () |
Deletes the currently select item in the list. | |
bool | Delete (int i) |
Deletes the item at index 'i'. | |
bool | Delete (char *p) |
Deletes the item matching 'p'. | |
bool | Insert (char *p, int Index=-1) |
Inserts a new item. | |
int | GetItems () |
Gets the items in the list. | |
char * | operator[] (int i) |
Returns the item at index 'i'. | |
int | OnEvent (GMessage *Msg) |
Called to process every message received by this window. | |
void | OnMouseClick (GMouse &m) |
The mouse was clicked over this view. | |
bool | OnKey (GKey &k) |
A key was pressed while this view has focus. | |
void | OnFocus (bool f) |
The view gains or loses the keyboard focus. | |
void | OnPaint (GSurface *pDC) |
Called to paint the onscreen representation of the view. | |
void | SetFont (GFont *Fnt, bool OwnIt=false) |
Sets the font for this control. | |
bool | SetPos (GRect &p, bool Repaint=false) |
Set the position of the view in terms of it's parent. | |
void | Value (int i) |
Sets the integer representation of the view's contents. | |
int | Value () |
Gets the integer representation of the view's contents. | |
int | OnEvent (GMessage *Msg) |
Called to process every message received by this window. | |
bool | Delete () |
Deletes the current item. | |
bool | Delete (int i) |
Deletes the item at position 'i'. | |
bool | Delete (char *p) |
Deletes the pointer 'p'. | |
bool | Insert (char *p, int Index=-1) |
Inserts a pointer. |
|
Constructor.
|
|
Inserts a new item.
Reimplemented from List< char >. |
|
Sets the font for this control. The lifetime of the font passed in is the responsibility of the caller. The GView object assumes the pointer will be valid at all times. Reimplemented from GView. |
|
Makes the list of entries sort into submenus. Good for large lists.
|