Download Xpress IVE
Transcript
Object Type and Object Name: These are read-only and simply indicate the type of the object just selected and the name given to that object (see the XAD Properties Dialog to alter this). Event: The type of event to add. The selection list will change depending on the type of object currently selected. For instance a BUTTON object will not respond to WINDOW_OPEN events and so it will not appear in the list. A full list of events and object types can be found in the XAD Reference Manual, xadref.pdf, within the Xpress installation "docs" directory. Mosel File to Add Event to: Here you can select any open Mosel code file, choose to open another Mosel file, or choose to create a new Mosel file. The tutorial example creates a new Mosel file, but most commonly you will wish to add events to a current file. Cancel: Close the dialog without adding an event. Go To Procedure: This will open the selected Mosel file and, provided it is a valid file, add in the relevant callback and a small piece of code. This code will simply display a message to the effect of "Not yet implemented" and is simply meant as a placeholder until you add your own functioning code to the callback. Note: If the callback already exists in the file then you will be taken to that section of the code and no new code will be created. Note: If you alter the name of the objects, window or the callback name itself once it has been created then the XAD code will not call that callback during code execution. The callback mechanism works on the assumption that the auto-generated callback will have the name structure "ObjectName_WindowName_EVENT". Should you wish for any reason to alter the name of an object during code execution then you may do so using the XAD procedure XADsetname(objectID:integer, newName:string), but great care should be taken when doing so. 7.1.4 The XAD Resource Editor Drag and Drop Toolbar This toolbar contains the various controls which may be dragged and dropped on to the Form Edit Dialog (FED) as well as any general options specific to the editor. The following controls may be selected for easier positioning and resizing of objects within the FED: Snap to Grid: XAD resource editor When repositioning objects with the mouse the object’s (0,0) point, or top-left, will position on the FED grid lines. The grid lines are spaced 10 pixels apart in both the vertical and horizontal axes. c Copyright 1983–2014 Fair Isaac Corporation. All rights reserved. page 76