AddHeader

Return to Introduction  Previous page  Next page

This function adds a new header to the taskpanel. The header will be visible at the next redraw.

 

 

Prototype:

AddHeader(STRING Title, BYTE nStyle, <BYTE IsExpanded>, <STRING IconName>, <BYTE IconSizes>),LONG,PROC

 

Arguments:

Title

This is the text that the header will display

nStyle

Visual style type.

HSTYLE_NORMAL - Standard blue header

HSTYLE_HIGHLIGHTED - White header

IsExpanded

Optional. If false, the header will be initially contracted (defaults to true)

IconName

Optional. The name of the icon that should be shown in the header. If ommited, no icon is shown. NOTE: The icon MUST be linked into your application.

IconSizes

Optional, The icon size used for tasks in this header. This size will affect the height of each task. If icon size is less then 20 the task-height will be set to 20.

 

Return value:

This function returns a LONG, representing an unique ID for this header.

 

See also:

AddTask

 

Example:

HID:XpTaskpanel = TaskPanel5.AddHeader('XP taskpanel', HSTYLE_NORMAL, True, 'xpprosjekt.ico', 24)

 

 



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