Pete wrote: >Thanks to those who've posted on Popups in dlogs, I know about the refcon >field being: menuid * 65536, but how do I calc the procID field value in the >cntl ?? Joe Lewis Wilkins responded: >The ProcID is always 1008 for Popup Menus; what it may be for other >things I do not know, though I would imagine the others are probably >listed in IM. Pete then asked: >next question is, where in IM might I look ?? Joe responded: >Though I'd love to know the answer, and Ken Shmidheiser probably knows exactly >where to look, my guess would be in the section that discusses Resource Types. >Unfortunately, my Hard Copy Vol. IV doesn't cover CNTL Resources - later >development, but I'm fairly sure a search for Resource Types or CNTL >should turn up something for you - unless Ken happens to be around. There are a handful of ProcIDs for Pre-Appearance Manager compliant popup menus that easily can be used in ResEdit with FB^3 code: ProcID (1008) Pre-Appearance standard pop-up menu ProcID (1009) Pre-Appearance, fixed-width pop-up menu. ProcID (1010) Pre-Appearance, variable-width pop-up menu. ProcID (1012) Pre-Appearance pop-up menu with a value of type ResType in the contrlRfCon field of the control structure. The Menu Manager adds resources of this type to the menu. ProcID (1016) Pre-Appearance pop-up menu with a control title in the window font. ProcID (1017) Pre-Appearance pop-up menu with a control title in the window font. ProcID (1018) Pre-Appearance pop-up menu with a control title in the window font. ProcID (1020) Pre-Appearance pop-up menu with a value of type ResType in the contrlRfCon field of the control structure. The Menu Manager adds resources of this type to the menu. If window space is tight in your app, you might try the popups that use the window font rather than the more standard system font. They're usually smaller and neat looking. To demonstrate how the 1012 and 1020 ProcID menus work with Menu Manager resources, create a CNTL resource with a ProcID of 1012 and a Refcon number of 1179602500. Create a matching MENU resource with the same ID as the CNTL (you can erase "Title" in the MENU resource and leave the item lines blank.) Run the popup and you will discover you have just created a standard Mac font menu resource. Interestingly, 1179602500 translated from decimal to hexadecimal is 464F 4E44; and from hex to binary is 0100 0110 0100 1111 0100 1110 0100 0100, Not helpful? Well, in plain old text it translates to "FOND". Sound familiar? Right, by plugging in 1179602500, you are telling the CNTL to use the Mac OS FOND resource in the System file which, of course, tracks font IDs. The names of those fonts appear in your popup. If you want to waste an afternoon, get an app like BaseMaster which allows you to translate decimal values into several other bases-- hex, binary, octal, vinkadecimal and, of course, plain old text-- and start converting resource types (i.e., "PICT" or 1346978644) and plugging in their numbers in as the popup Refcon number. You will find some point to the System file, while others to the resources in your temporary FB^3 app. There are a new range of Appearance-Manager compliant popup menus that I am currently experimenting with. It's long been my hope that future versions of FB^3 will provide more powerful tools with which to more easily access Appearance Manager features. As I understand the problem, Appearance Manager controls are integrated into an environment that starts with the window and everything in it. While a few simple controls (some buttons, clocks, disclosure trianges, chasing arrows) can successfully be used in a standard FB window, most of the advanced (and neat) features only work properly in an Appearance Manager compliant environment. And I have yet to see a working example of such in FB^3 code. Apple long ago orphaned ResEdit, and Resorcerer is getting long in the tooth for handling the newer controls-- including popups. With OSX looming on the horizon, it's my concern that we are looking at a new era without adequate tools to allow us to tap into its potential. Ken