![]() |
How to set the CImageList to the ToolBar |
Post Reply ![]() |
Author | |
Makarand ![]() Senior Member ![]() ![]() Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
![]() ![]() ![]() ![]() ![]() Posted: 21 March 2007 at 7:05am |
Hi,
I have created the Menu by using m_ToolBar.CreateToolBar(...) and pecifying the number of button by using m_ToolBar.SetButtons(..).
Now, I have CImageList and I want to set these image list to the toolbar.
How can I set the CImageList to the ToolBar?
Please Help Me !
Thank You,
Makarand
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
add it to global image manager:
XTPImageManager()->SetIcons(&m_il, ....);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Makarand ![]() Senior Member ![]() ![]() Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
![]() ![]() ![]() ![]() ![]() |
Hi Oleg,
Thank you for the reply.
I am able to set the Image list by using XTPImageManager()->SetIcons(&
I have created the the toolbar below the main toolbar and able to set the image.
Now I want to set the remaining area of the toolbar which is not getting refreshed.
How can I set the remaining background area of the Toolbar?
Thank You,
Makarand.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Have no idea what "remaining background area" do you mean. Show some screenshot.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Makarand ![]() Senior Member ![]() ![]() Joined: 27 February 2007 Location: India Status: Offline Points: 140 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I can see entire toolbar just below the Menubar from extreme left to extreme right of the screen. But the portion of the toolbar where buttons are present or inserted is visible, remaining toolbar area is not getting refreshed..
How can I send you the snapshot or you got my point?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Show me all code you use to create.show toolbar. or may be you can modify our sample to reproduce this problem?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
actually why do you use CreateToolBar method to create it ? do you use CXTPCommandBars class ? call pCommandBars->Add instead of CreateToolBar.
Please follow our samples.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |