RE: Win32lib menus
- Posted by Derek Parnell <Derek.Parnell at SYD.RABOBANK.COM> Jun 18, 2002
- 468 views
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C21745.1EEDD300 charset=iso-8859-1 > -----Original Message----- > From: Don Phillips [mailto:Graebel at hotmail.com] > Subject: Re: Win32lib menus > > Perhaps it is just me, but anything that needs to modify > Win32Lib directly > (imho) is just coded wrong. Makes it very hard to pass code > around to other > people if your version of Win32Lib is custom... Yes it would be useful if there was only one library called "win32lib". However, I can't prevent somebody from changing their copy of the library. The two ways of getting around the "need" to change one's copy is to get the changes into the offical library (but this takes time) or create an add-on to the library. I hope that I've structured the library to enable add-ons to be created without too much work. I can see you support the add-on approach. > Anyways. On my system (Win 2k) I put together this code > (just now) and it > seems to run just fine. [snip] You have done essentially the same as I have. The main difference is that I do it at create time and you do it after create time. To summarize your routine... --Create a menu (or more accurately - a menubar item -) in the normal manner. --Scan through the window's menubar until you find the one just created. --Convert it from a POPUP style to a COMMAND style. To summarize my routine... --If the user asks for a COMMAND style create a COMMAND style menu else create a POPUP style menu. Thanks for your routine. It is a neat example that shows that add-ons are very possible for the library. ----------- cheers, Derek. ================================================================== De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================================== The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================================== ------_=_NextPart_000_01C21745.1EEDD300 Content-Type: application/ms-tnef