rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliCellPaletteStruct Class Reference

Table gadget class. More...

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

List of all members.

Public Member Functions

IlvPalettegetFillPalette () const
 Returns a palette whose foreground color is used to fill the cell.
IlInt getRowno () const
 Returns the row position of the cell.
IlInt getTableColno () const
 Returns the column position of the cell (relative to the underlying table).
IlvPalettegetTextPalette () const
 Returns a palette whose foreground color is used to draw the cell text.
IlBoolean isSelected ()
 Returns IlTrue if the cell is selected (highlighted) and IlFalse otherwise.
void setFillPalette (IlvPalette *pal)
 Sets the palette used to fill the cell.
void setTextPalette (IlvPalette *pal)
 Sets the palette used to draw the cell text.

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:
pal The palette.
void IliCellPaletteStruct::setTextPalette ( IlvPalette pal  ) 

Sets the palette used to draw the cell text.

Parameters:
pal The palette.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright 2012, 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.