LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

icons in the menu bar

Dear alls,
 
I've a problem with my project.
 
I would like to introduce same icons in the menu bar, similar to "Save Icon", "Load Icon", etc...
 
Is it possible ?  I cannot find any sample with this icons in the menu bar.
 
Thank you very much in advance,.
 
BR
0 Kudos
Message 1 of 6
(3,496 Views)

You can use the toolbar instrument driver: <cvidir>\toolslib\custstrl\toolbar.fp

Look at the sample project <cvidir>\samples\userint\custctrl\toolbar\tooldemo.prj



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 6
(3,485 Views)
Are you sure? I don't think the toolbar instrument driver can do this. I think Prado is trying to get icons in the pull down menus like in MS Office, etc. Maybe there is Windows API call that can do this.
0 Kudos
Message 3 of 6
(3,479 Views)
Robot surprisedGosh! You're right! I have read "toolbar" instead of "menu bar"!


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 6
(3,464 Views)
I found some info on the the Windows API menu functions. Let me know when you figure it out; I have long wanted to add this perk to my programs.

Get a handle to the menu using GetMenu, then add a bitmap using SetMenuItemBitmaps.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/r...

Message Edited by zyptron on 07-13-2005 11:03 AM

0 Kudos
Message 5 of 6
(3,439 Views)
If anybody has done this please post example here so that rest of us can understand and implement.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 6 of 6
(3,429 Views)