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 |
|
Offer Har
|
Jun 8, 2010 - 11:52 AM
|
Dear Support, I am trying to add a button to a toolbar from the code using InsertButton. The command is not known in advance, so there is no handling for it in the command manager. What I get is an empty button. How can I add image, tooltip etc to the button? Thanks, Ron.
|
|
Technical Support
|
Jun 8, 2010 - 12:08 PM
|
Toolbar buttons use a command manager to get text, tooltip text, status tip text and an icon. They do not have a visual look without the command manager. You can allocate commands in the command manager (g_CmdManager->CmdAllocPtr() ) and load texts and icons. The command manager can provide you with dynamic command identifiers which are not intersected with other commands. But alternatively you can implement your own toolbar buttons containing icons and texts like demonstrated in the FunnyBars sample application.
|
|