Rogue Wave Views |
Rogue Wave Views Documentation Home |
Table gadget class. More...
#include <ilviews/dataccess/gadgets/tablegad.h>
Public Member Functions | |
IlvPalette * | getFillPalette () const |
Returns a palette whose foreground color is used to fill the cell. More... | |
IlInt | getRowno () const |
Returns the row position of the cell. More... | |
IlInt | getTableColno () const |
Returns the column position of the cell (relative to the underlying table). More... | |
IlvPalette * | getTextPalette () const |
Returns a palette whose foreground color is used to draw the cell text. More... | |
IlBoolean | isSelected () |
Returns IlTrue if the cell is selected (highlighted) and IlFalse otherwise. More... | |
void | setFillPalette (IlvPalette *pal) |
Sets the palette used to fill the cell. More... | |
void | setTextPalette (IlvPalette *pal) |
Sets the palette used to draw the cell text. More... | |
Friends | |
class | IliTableGadget |
Table gadget class.
Library: dbgadget
This class defines the fill palette and text palette used to draw a cell in a table gadget. During execution of the GetCellPalette
table gadget callback, this structure can be obtained by calling the IliTableGadget::getCellPaletteStruct
member function.
About properties
The IliTableGadget
can use table properties to configure certain graphical aspects. Currently, the following properties are supported:
|
|
background | Color name |
foreground | Color name |
font | Font name |
readOnly | 1 or 0 |
format | format name or specification |
mask | mask name or specification |
The properties can be attached to individual cells, whole rows, whole columns, or the table as a whole.
About Clipboard
The table gadget can copy the contents of a given selection to the clipboard in the form of a character string. Each value in the selection is formatted according to the format and input mask of the column to which this column belongs. If the selection contains more than one column or more than one row, then each row is separated by a new line character and each column is separated by a tab character.
IlvPalette* IliCellPaletteStruct::getFillPalette | ( | ) | const |
Returns a palette whose foreground color is used to fill the cell.
IlInt IliCellPaletteStruct::getRowno | ( | ) | const |
Returns the row position of the cell.
IlInt IliCellPaletteStruct::getTableColno | ( | ) | const |
Returns the column position of the cell (relative to the underlying table).
IlvPalette* IliCellPaletteStruct::getTextPalette | ( | ) | const |
Returns a palette whose foreground color is used to draw the cell text.
IlBoolean IliCellPaletteStruct::isSelected | ( | ) |
Returns IlTrue
if the cell is selected (highlighted) and IlFalse
otherwise.
void IliCellPaletteStruct::setFillPalette | ( | IlvPalette * | pal | ) |
Sets the palette used to fill the cell.
pal | The palette. |
void IliCellPaletteStruct::setTextPalette | ( | IlvPalette * | pal | ) |
Sets the palette used to draw the cell text.
pal | The palette. |
© Copyright 2015, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.