Macintosh Programming Techniques, Second Edition
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
xii Macintosh Programming Techniques. ZE Stepping through the Code .............................293 Chapter Summary ...................................... .305 Chapter 6: More About Windows . . . . . . . . .307 About Menus ........................................... 307 Menu Resources ......................................... 308 The MENU Resource ................................. .309 The MBAR Resource ...................................311 Menu Source Code ......................................313 Setting up the Menu Bar ................................313 Handling a Click in a Menu .............................316 Handling a Click in the Apple Menu .................... .320 Handling a Click in Other Menus ........................321 Keyboard Equivalents ....................................321 The MENU Resource ..................................323 Handling a Keystroke ..................................324 Hierarchical Menus ..................................... .325 The MENU Resource ................................. .326 Setting up the Hierarchical Menu ........................328 Changing Menu Characteristics ........................... .332 Disabling and Enabling Menus and Menu Items ............332 Adding a Check Mark to a Menu Item ....................336 Changing the Text of a Menu Item ....................... 340 Changing the Style of a Menu Item .......................342 Editing Text in a Modal Dialog Box .........................344 Modal Dialog Box Filter Function ........................346 Chapter Program: MenuMaster ........................... .352 Program Resources: MenuMaster.rsrc .....................356 Program listing: MenuMaster.c ..........................361 Stepping through the Code .............................371
- Languages
- English