Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Scott Moore
|
Nov 27, 2006 - 7:18 AM
|
I downloaded the white paper Prof-UIS_WhitePaper.pdf from your website and on page 23, it says "Text support for toolbar buttons: You can customize any toolbar button so that the toolbar can display its icon, its text, or both its icon and text (see Figure 25)."
For the life of me, I can’t figure out how to do this. And I haven’t found any examples that demo this.
Thanks.
|
|
Suhai Gyorgy
|
Nov 27, 2006 - 8:31 AM
|
To display the text for the command in the toolbar, your code should be something like this: bool bHasText = true;
CExtCmdItem *pCmdItem = g_CmdManager->CmdGetPtr(pApp->m_pszProfileName, yourCmdId);
ASSERT_VALID(pCmdItem);
pCmdItem->m_sToolbarText = bHasText ? pCmdItem->m_sMenuText : _T(""); // or any other text instead of pCmdItem->m_sMenuText
|
|
Technical Support
|
Nov 27, 2006 - 12:39 PM
|
|
|