Re: Me wants pretty (popup) menus...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Don wrote:
> 
> > > Hey earthlings!
> > > I was wondering... how could I do a menuitem that has a picture+caption?
> > > i.e.:
> > > 
> > > [pic] Description of pic
> > > 
> > > where [pic] is a 16x16 icon or bitmap or resource or whatever.
> > > I have crawled around the Microsoft (shudders) PSDK docs, and I'm still
> > > clueless.
> > > Any help?
> > > 
> > > William Heimbigner
> > William,
> > 
> > You could try xControls by Don Phillips.  He's got a demo that shows how
> > to use picture menus.  I don't think it does popup menus, though.
> > 
> > Jonas
> 
> I dont know if that works anymore.  It was broken on the last release
> of Win32Lib I think.  Something about eventLoop() not returning a value.
> 
> IE
> C:\EUPHORIA\include\win32lib.ew:32364 in procedure WinMain()
> eventLoop() does not return a value
> ... called from C:\EUPHORIA\xControls\Examples\PicMenu\PicMenuTst.exw:21
> 
> Where line 21 is the standard call to WinMain:
> WinMain( TestWin, Normal )
> 
> The message is so vauge I have not been able to track the problem to
> its source for correction.

Ummmmm...eventLoop() is a private (not global) procedure (not function)
inside win32lib and has been so for a very long time. The recent
release of the library did not break this.

Also the PicMenuTst.exw program runs on my machine. However, it
did highlight a 'bug' in the win32lib library. Don, instead of using
w32Func(xGetSysColor,...) directly, can you please use the getSysColor() 
function instead? I've incorrectly changed the normal values of COLOR_...
forgetting that they were global constants. I'll correct them tomorrow.
But getSysColor() will work as expected.

Also, your demo is crashing when the PicMenu controls are being destroyed.
The API function DeleteMenu is returning a zero.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu