User (Legacy) Posted April 25, 2000 Report Share Posted April 25, 2000 I'm using ChartFX 98/4.0, can I wish to add a new command(40), with ToolTip text of 'MyPrint' and the 'Printer' icon, at location 10 of the ToolBar. Why doesn't this work????? m_pChartFX->Commands->AddCommand(40); m_pChartFX->ToolBarObj->AddItems(1,10); m_pChartFX->Commands->PutitemText( 40, "MyPrint" ); m_pChartFX->Commands->PutitemPicture( 40, 2 ); m_pChartFX->ToolBarObj->Item[10]->CommandID = 40; This kinda works ... however, the icon displayed in the 10th tool location is the Open Folder, and the ToolTip text says 'Solid'. When I click on that icon, I am taken to the UserCommand command handler function, which is what I want. But why aren't the icon & ToolTip text changed??? Can anyone show me working VC++ code, please? I'm very disappointed in lack of C++ type sample code. Thanks, Tim Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.