[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Mac::Controls (Popup Menus)



The excellent (but too short) chapter on GUI Toolbox routines in MPPE 
(with some very fine example code), makes no mention of popup menus.  
Yes, I know it's probably dealt with elsewhere, and I haven't taken the 
time to look.  Of all the controls I could possibly use, the only one I 
really need at the moment is a popup menu.  How does one go about 
creating one?  Inside Macintosh gives two methods.  I can create a 'CNTL' 
resource and call GetNewControl, or I can call NewControl, and define the 
control's properties in MacPerl.  The examples in Pascal are fairly 
opaque to me (I admit it:  I failed the one class I took in Pascal in 
college).  For a popup menu I suspect I also need Mac::Menus, Mac::Fonts, 
Mac::Events and Mac::QuickDraw.

Anyone willing to take a stab at it?

# Fungal Parataxonomy                   Mycology Information (Mycoinfo)
# Webmaster, Staff Writer      **The World's First Mycology E-Journal**   
# <mailto:webmaster@mycoinfo.com>            <http://www.mycoinfo.com/> 
# "A couple of guys trying to do something great..."



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch