It is currently Thu May 23, 2013 5:21 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: GetMenuInfo
PostPosted: Wed Jan 25, 2012 10:23 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 18, 2008 3:35 pm
Posts: 183
Location: Wales, UK
I've been pulling my hair out for whole day thinking that my coding was wrong, only to find that GetMenuInfo does not work properly with image menus. As far as I am aware it is only the ability to get the menu text that fails, Getmenustring also fails with Image menus.

Does anyone know why this is? Or if there is a workaround?

_________________
----------------------------------------------------------------------------
Commenting your own code is admitting you don't understand it.
----------------------------------------------------------------------------


Top
 Profile  
 
 Post subject: Re: GetMenuInfo
PostPosted: Thu Jan 26, 2012 2:34 am 
Offline
Addict
Addict

Joined: Fri Oct 23, 2009 2:33 am
Posts: 2862
Location: Wales, UK
Quote:
As far as I am aware it is only the ability to get the menu text that fails, Getmenustring also fails with Image menus.


Erm, that's two items that fail then.

I couldn't find anything on MSDN that suggests GetMenuInfo will not work with a menu that includes bitmaps. What info are you trying to gather? Do the PB commands GetMenuItemText() and GetMenuTitleText() work with your menu?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
 
 Post subject: Re: GetMenuInfo
PostPosted: Thu Jan 26, 2012 4:01 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 18, 2008 3:35 pm
Posts: 183
Location: Wales, UK
Indeed, but I was kinda assuming that the one function was a wrapper for the second, with more information. MSDN does encourage the use of getmenuinfo over other functions anyway.

I havent used the PB functions, since I want to be able to modify menu items and submenus on the fly, something PB doesnt support. With the API I can add a submenu to another menu with very little programming, I am just a little bewildered why the text member doesnt populate with image menus.

_________________
----------------------------------------------------------------------------
Commenting your own code is admitting you don't understand it.
----------------------------------------------------------------------------


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye