SetColorGrp

Return to Introduction  Previous page  Next page

Change the colors of the taskpanel.

 

 

Prototype:

SetColorGrp(LONG GrpNum, ULONG cBackground, ULONG cGradientFrom, ULONG cGradientTo, ULONG cText, ULONG cHoveredText, <ULONG cDisabled>)

 

Arguments:

GrpNum

Specifies the colorgroup you want to change.

COLORGRP_PANEL - Panel background colors

COLORGRP_HEADERS - Colors for normal headers

COLORGRP_HEADERS2 - Colors for highlighted headers

COLORGRP_TASKS - Colors for tasks

COLORGRP_SEPARATORS - Tasks with separator attribute on

cBackground

The background color (used on Win95/98/NT)

cGradientFrom

Top-left gradient color

cGradientTo

Bottom-right gradient color

cText

Textcolor

cHoveredText

Textcolor when the mouse is hovering over the text.

cDisabled

Textcolor for disabled tasks

 

See also:

RGB

 

Note:

The color values can be obtained with the RGB-method. Clarion's COLOR:xxx-equates are also accepted.

If you'd like to specify colors as hex-values, the format is 0<bb><gg><rr>H (eg. 000FFFFH equals yellow).

 

 

Example:

TaskPanel5.SetColorGrp(COLORGRP_PANEL, 15114362,15114362,14054755,0,0)

TaskPanel5.SetColorGrp(COLORGRP_HEADERS, 11685127,11685127,13065250,16777215,16748098)

TaskPanel5.SetColorGrp(COLORGRP_HEADERS2, 16777215,16777215,16373191,13065250,16748098)

TaskPanel5.SetColorGrp(COLORGRP_TASKS, 16377824,0,0,12333369,0,0)

 

 

 



Direct link to this page on our website: http://www.icetips.com/manuals/xptaskpanel/setcolorgrp.htm