Figure PARMBLK Structure
o pb_tree - A POINTER to the object tree that contains the application-defined object. o pb_obj - A WORD containing the object index of the application-defined object. o pb_prevstate - A WORD containing the old state of an object to be changed. o jpb_currstate - A WORD containing the changed new state of an object . Note If pb_prevstate and pb_currstate are the same, the application is drawing the object, not changing it. o pb_x - A WORD containing the X-coordinate of a rectangle defining the...
Scrap Library
9.2 Using the Scrap 9.3 Scrap Library Routines 9-2 10.2 Using the File Selector Library 10-2 10.3 File Selector Library Routine 10-3 10.3.1 FSEL_INPUT 11.2 Using the Window Library 11-2 11.2.1 Components of the Border Area 11-3 11.2.2 Division of Labor 11-6 11.2.3 Window Management Calls 11-6 11.2.4 Support of Overlapping Windows 11-8 11.2.5 Redrawing and Updating 11-9 11.3 Window Library Routines 11-11 11.3.1 WIND_CREATE 11.3.2 WIND_OPEN 11.3.3 WIND_CLOSE 11.3.4 WIND_DELETE 11.3.5 WIND_GET...
Mouse Button Event
GEM AES lets an application wait for a specified mouse button or set of buttons to enter a specified state down or up . A mask word performs a logical AND operation on the bits representing the mouse buttons the application wants to ignore. For example, on a three-button mouse, a mask word value of 001 indicates that the user has pressed the left button. A mouse button event takes pl amp ce when the following equation is true current_state AND mask desired_state For example, if the user presses...
TEDINFO Structure
The TEDINFO structure lets a user edit formatted text. The object types G_TEXT, G_BOXTEXT, G_FTEXT, and G_FBOXTEXT use their ob_spec pointers to point to TEDINFO structures. o te_ptext - A POINTER to the actual text. If the first text character is the field is blank, and the application can use any characters for the remaining character positions in the field. For example, a te_ptext string xyzpdq is seven blank spaces. o te_ptmplt - A POINTER to a text string template for any further data...
Using the Menu Library
The Menu Library is intended to relieve the application of the overhead of handling the interaction between mouse and menu. The Menu Library has the following responsibilities o displaying the appropriate menu bar for each active application o enabling and disabling menu items o displaying check marks in menus o returning a highlighted menu title to its normal state o displaying context-sensitive menu text o displaying a desk accessory's name on the Desk Menu The application need only do the...
Keystroke Menu Selection
GEM AES supports letting the user select some menu items by pressing a specially designated key or combination of keys instead of using a menu. To enable this feature, the application should specify a keyboard event as one of the awaited events in the EVNT_MULTI call. When the user presses one of the menu item selection keys, the application makes a MENU_TNORMAL call with an me_nnormal value of 0 zero to highlight the menu title. The user does not see the menu, but the highlighted menu title...
Application Library Routines
The Application Library provides the following routines o APPL_INIT - initializes a session with the Application Library o APPL_READ - lets an application read a specified number of bytes from a message pipe o APPL_WRITE - lets an application write a specified number of bytes to a message pipe o APPL_FIND - finds the application identifier of another application in the system o APPL_TPLAY - plays a piece of a GEM AES recording of the user's actions o APPL_TRECORD - records a set of the user's...