![]() ![]() If your extension defines two menu items, you could register a handler to respond to the menuSignal (page 363) in each of You must register a handler for a specific event in each event target object that should respond to that event. See “Compatibility with Previous Event Handlers” on page 395 in Part 2 of this book. Other events allow more specialized responses, such as defining the appearance of a custom control when it needs to be redrawn.įor a complete list of events and the circumstances that generate them, see Chapter 6, “Events and Event Handlers.”Įvent handling has changed significantly in this release.Handler for this event to do any cleanup that your extension requires. ![]() ![]() Terminating the GoLive application generates the appterm event (page 360) in the app Object (page 53).Register handlers with the app Object (page 53) for the open and new events (page 364), which occur when the user opens or creates a new document.Register handlers with the document Object (page 138) for document events such as selection and save (page 366).Your handlers for the menuSignal (page 363) and control events such as onClick (page 364) implement much of the UI functionality.Your handler is passed a menuEvent object (page 382). Information about the event, such as where and when it occurred.įor example, a menuSignal event can occur in a menuItem object, and you can register a handler for that event that responds to the selection of a menu item that your extension added. Occurs in that object, your handler is passed a single argument, one of the Event Object Types (page 377), which encapsulates The following GoLive objects act as event targets:Įach of these objects inherits the addEventListener function (page 373), which allows you to register a handler for a type of event that can occur in that object. THis mechanism defines event objects of various types, which encapsulate information about events, and event targets, GoLive objects in which events can occur. GoLive 8 implements a WC3-compliant event-handling mechanism. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |