rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Gadgets Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvColorSelector Class Reference

Dialog class. More...

#include <ilviews/gadgets/colorch.h>

Inheritance diagram for IlvColorSelector:
IlvDialog IlvGadgetContainer IlvContainer IlvDrawingView IlvView IlvAbstractView IlvSystemPort IlvPort

List of all members.

Public Member Functions

 IlvColorSelector (IlvDisplay *display, IlvSystemView transientFor=0)
 Constructor.
IlvColorget (IlBoolean grab=IlFalse, IlvCursor *cursor=0)
 Displays the color selector as a modal dialog.
IlvColorgetResult () const
 Returns the current selected color.
void set (IlvColor *color)
 Sets the color displayed by the color selector.

Detailed Description

Dialog class.

Library: ilvadvgdt

The IlvColorSelector class lets you select a color. A predefined set of colors is available, but you can choose any color by modifying the slider values. The names of the graphic objects are displayed to let you change the default look of the dialog.

IlvColorSelectora.gif

A color selector in RGB mode or HSV mode with color names and with color disk

See also:
IlvColor.

Constructor & Destructor Documentation

IlvColorSelector::IlvColorSelector ( IlvDisplay display,
IlvSystemView  transientFor = 0 
)

Constructor.

Initializes a new instance of the IlvColorSelector class.

Parameters:
display The connection to the display.
transientFor The view for which the color selector is transient. See the IlvView constructors for more information about transient windows.

Member Function Documentation

IlvColor* IlvColorSelector::get ( IlBoolean  grab = IlFalse,
IlvCursor cursor = 0 
)

Displays the color selector as a modal dialog.

Parameters:
grab A Boolean value specifying whether the dialog should be system modal, that is, grabs input events on the whole system so that, until the function returns, other applications will not be able to get any keyboard or mouse event. In this case, you can specify the cursor to be displayed in the parameter cursor. If grab is set to IlFalse (the default), the dialog is application modal, that is, the application does not receive input events in other windows.
cursor The cursor used to choose the color when the dialog is system modal.
Warning:
[note] Some operating systems, such as Windows NT and Windows 95, do not allow system modal dialogs. On these operating systems dialogs are always application modal.
See also:
getResult
IlvColor* IlvColorSelector::getResult (  )  const

Returns the current selected color.

Returns:
The current selected color.
See also:
get
void IlvColorSelector::set ( IlvColor color  ) 

Sets the color displayed by the color selector.

The RGB sliders and text fields are updated.

Parameters:
color The color displayed by the color selector.
See also:
IlvColor
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.