Macro/text/sbasic/shared/05060700.xhpSun Microsystems, Inc.events;linked to objectsMacroChoose the macro that you want to execute when the selected graphic, frame, or OLE object is selected. Depending on the object that is selected, the function is either found on the Macro tab of the Object dialog, or in the Assign Macro dialog.EventLists the events that are relevant to the macros that are currently assigned to the selected object.The following table describes the macros and the events that can by linked to objects in your document:
EventEvent triggerOLE objectGraphicsFrameAutoTextImageMap areaHyperlinkClick objectObject is selected.✓✓✓Mouse over objectMouse moves over the object.✓✓✓✓✓Trigger HyperlinkHyperlink assigned to the object is clicked.✓✓✓✓Mouse leaves object Mouse moves off of the object.✓✓✓✓✓Graphics load successful Graphics are loaded successfully.✓Graphics load terminatedLoading of graphics is stopped by the user (for example, when downloading the page).✓Graphics load faultyGraphics not successfully loaded, for example, if a graphic was not found.✓Input of alpha characters Text is entered from the keyboard.✓Input of non-alpha characters Nonprinting characters are entered from the keyboard, for example, tabs and line breaks.✓Resize frameFrame is resized with the mouse.✓Move frameFrame is moved with the mouse.✓Before inserting AutoTextBefore a text block is inserted.✓After inserting AutoTextAfter a text block is inserted.✓
MacrosChoose the macro that you want to execute when the selected event occurs.Frames allow you to link events to a function, so that the function can determine if it processes the event or $[officename] Writer.CategoryLists the open $[officename] documents and applications. Click the name of the location where you want to save the macros.Macro nameLists the available macros. Click the macro that you want to assign to the selected object.AssignAssigns the selected macro to the specified event. The assigned macro's entries are set after the event.RemoveRemoves the macro that is assigned to the selected item.Macro selectionSelect the macro that you want to assign.