Jump to content
Software FX Community

AddCommand/VC++ problem

User (Legacy)

Recommended Posts

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->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.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...