Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

TreeBox.TextRow Class Reference

Inherits TreeBox.Row.

List of all members.


Detailed Description

A text row for the TreeBox control.


Public Member Functions

 this (char[][] list)
 Assign the list, non-copying.

char[] columnText (Column column)
 Return a column's text value.

int compare (ListBox.Row other, Column column)
 Perform a capitalization-aware text comparison.

int height ()
 Return the height of the row in pixels.

void displayColumn (Column column, int x, int y, int width)
 Draw a single column at the specified location.

void display (int x, int y, bit selected, bit focus, bit enabled)
 Display this row in the canvas at the specified location.


Public Attributes

char[][] list
 Column values.


Member Function Documentation

void TreeBox.TextRow.display int  x,
int  y,
bit  selected,
bit  focus,
bit  enabled
 

Display this row in the canvas at the specified location.

The default calls displayFocus on the whole row, sets the text color to black or white depending upon whether the row is selected, and then calls displayColumn on each column.

Parameters:
x The horizontal coordinate to start the row.
y The vertical coordinate to start the row.
selected True if this item has been selected.
focus True if this item is the keyboard focus.
enabled True if the control is enabled.

Reimplemented from ListBox.Row.

void TreeBox.TextRow.displayColumn Column  column,
int  x,
int  y,
int  width
 

Draw a single column at the specified location.

The default draws nothing.

Parameters:
column The column to display.
x The horizontal coordinate to start the column.
y The vertical coordinate to start the column.
width The width in pixels of the space the column is given.

Reimplemented from ListBox.Row.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 13:12:53 2003 for dig by doxygen 1.3.2