Print Page | Close Window

Custom Caption in tasks

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=15253
Printed Date: 21 November 2024 at 1:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Caption in tasks
Posted By: jowndow
Subject: Custom Caption in tasks
Date Posted: 27 September 2009 at 7:06pm
I am trying to add groups in the TaskPanel with a run-time generated caption.

Because I won't know the group title before run-time, I can't use:

CXTPTaskPanelGroup* pGroup1 = m_wndOutlookBar.AddGroup(4000);

where 4000 is the ID of the string the String Table. Is there a way to add a group in this way?

CXTPTaskPanelGroup* pGroup1 = m_wndOutlookBar.AddGroup("Today, is Sunday September 27th");

Thanks! :)



-------------
Xtreme ToolkitPro 2008 (12.0.2)



Replies:
Posted By: rdhd
Date Posted: 13 October 2009 at 9:40am
Just add a group with whatever ID you want the group to have. Then call the SetCaption method of the group object. If the ID happened to match a string in the string table, no problem since you will then be resetting the caption. If you want no caption, call SetCaption("");



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net