rwlogo

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator
List of all members | Public Member Functions | Friends
IliCellPaletteStruct Class Reference

Table gadget class. More...

#include <ilviews/dataccess/gadgets/tablegad.h>

Public Member Functions

IlvPalettegetFillPalette () 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...
 
IlvPalettegetTextPalette () 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
 

Detailed Description

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:

Property Name

Value

backgroundColor name
foregroundColor name
fontFont name
readOnly1 or 0
formatformat name or specification
maskmask 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.

See Also
IliTableGadget

Member Function Documentation

IlvPalette* IliCellPaletteStruct::getFillPalette ( ) const

Returns a palette whose foreground color is used to fill the cell.

Returns
The palette.
IlInt IliCellPaletteStruct::getRowno ( ) const

Returns the row position of the cell.

Returns
The row position.
IlInt IliCellPaletteStruct::getTableColno ( ) const

Returns the column position of the cell (relative to the underlying table).

Returns
The column position.
IlvPalette* IliCellPaletteStruct::getTextPalette ( ) const

Returns a palette whose foreground color is used to draw the cell text.

Returns
A palette.
IlBoolean IliCellPaletteStruct::isSelected ( )

Returns IlTrue if the cell is selected (highlighted) and IlFalse otherwise.

Returns
The cell state.
void IliCellPaletteStruct::setFillPalette ( IlvPalette pal)

Sets the palette used to fill the cell.

Parameters
palThe palette.
void IliCellPaletteStruct::setTextPalette ( IlvPalette pal)

Sets the palette used to draw the cell text.

Parameters
palThe 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.