1. Picture menus

Hi y'all,
I have an Win32lib application with a hidden window which just presents a popup
menu, this is all working fine but I want to improve the look of the menu by
adding icons so it is a picture menu. The only library I could find to do this is
xControls (version 1 - the PicMenu isn't in version 2 - I guess this could be
why! sad ) by Greg Haberek. This looks good but one of the menu items opens a
window and if any of the menu options use PicMenu I get a win32lib error (version
0.60.6) - code 425, "Held resource owner is not the actual owner".

Does anyone know of a fix for this or is there another library I can use to
generate the picture menu?

Regards PeteS

new topic     » topic index » view message » categorize

2. Re: Picture menus

Pete Stoner wrote:
> 
> Hi y'all,
> I have an Win32lib application with a hidden window which just presents a
> popup
> menu, this is all working fine but I want to improve the look of the menu by
> adding icons so it is a picture menu. The only library I could find to do this
> is xControls (version 1 - the PicMenu isn't in version 2 - I guess this could
> be why! sad ) by Greg Haberek. This looks good but one of the menu items opens
> a window and if any of the menu options use PicMenu I get a win32lib error
> (version
> 0.60.6) - code 425, "Held resource owner is not the actual owner".
> 
> Does anyone know of a fix for this or is there another library I can use to
> generate the picture menu?
> 
> Regards PeteS

You may wait for my mod'ed version of win32lib to be open to beta testers, 
it will do that job right.  This could take like 10-15 days, allowing for 
more testing. Alternatively, you can try wrapping SetMenuItemInfo() in the 
Win32 API and use this to set checked and unchecked marks to the same bitmap 
(your own). I'll post or email the details if you are in a hurry and wish 
to try this approach. The API isn't very tricky really.

HTH
CChris

new topic     » goto parent     » topic index » view message » categorize

3. Re: Picture menus

CChris wrote:
> 
> Pete Stoner wrote:
> > 
> > Hi y'all,
> > I have an Win32lib application with a hidden window which just presents a
> > popup
> > menu, this is all working fine but I want to improve the look of the menu by
> > adding icons so it is a picture menu. The only library I could find to do
> > this
> > is xControls (version 1 - the PicMenu isn't in version 2 - I guess this
> > could
> > be why! sad ) by Greg Haberek. This looks good but one of the menu items
> > opens
> > a window and if any of the menu options use PicMenu I get a win32lib error
> > (version
> > 0.60.6) - code 425, "Held resource owner is not the actual owner".
> > 
> > Does anyone know of a fix for this or is there another library I can use to
> > generate the picture menu?
> > 
> > Regards PeteS
> 
> You may wait for my mod'ed version of win32lib to be open to beta testers, 
> it will do that job right.  This could take like 10-15 days, allowing for 
> more testing. Alternatively, you can try wrapping SetMenuItemInfo() in the 
> Win32 API and use this to set checked and unchecked marks to the same bitmap
> 
> (your own). I'll post or email the details if you are in a hurry and wish 
> to try this approach. The API isn't very tricky really.
> 
> HTH
> CChris

Thanks, I would like try wrapping the API myself, but the ways things are at the
moment I doubt if I would have the time to figure it all out from scratch, so if
you do have any info on it then I'll be glad for the help.. Otherwise I'll wait
for your win32lib enhancements..

PeteS

new topic     » goto parent     » topic index » view message » categorize

4. Re: Picture menus

> I have an Win32lib application with a hidden window which just presents a
> popup menu, this is all working fine but I want to improve the look of the menu
> by adding icons so it is a picture menu. The only library I could find to do this
> is xControls (version 1 - the PicMenu isn't in version 2 - I guess this could be
> why! sad ) by Greg Haberek. This looks good but one of the menu items opens a
> window and if any of the menu options use PicMenu I get a win32lib error (version
> 0.60.6) - code 425, "Held resource owner is not the actual owner".
>
> Does anyone know of a fix for this or is there another library I can use to
> generate the picture menu?

I have begun to dig around in the world of owner-drawn controls for
use in my new for-profit project. This includes (at a minimum) buttons
and menus. This project has also prompted a few updates to xControls,
so as soon as I get everything in working order, I will put out
another release of xControls.

If you can wait a few more weeks until I have a release of xControls,
then I suggest waiting, as I will have exactly what you need. If you
need this immediately, seek other routes. smile

~Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu