Issue 15039 - "create document" event: sample macro code executed (partially) twice
Summary: "create document" event: sample macro code executed (partially) twice
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Frank Schönheit
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-28 22:52 UTC by Frank Schönheit
Modified: 2003-07-15 15:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Frank Schönheit 2003-05-28 22:52:09 UTC
* add the following macro to any global macro library:
  sub setNewDocumentTitle
    MsgBox "entering the method"
    sText = InputBox("Enter the title of the new document:")
    MsgBox "leaving the method"
  end sub
* Tools|Configure|Events
* assign this macro to the "Create Document" event (globally for OpenOffice.org,
not for the document)
* confirm the changes in this dialog with OK
* open a new document
=> - a message box "entering the method" opens
   - while this message box is open, the input box appears
* close the input box with OK
* close the message box with OK
=> the input box appears, again
* close the input box with OK
=> the message box "leaving the method" opens

Seems that part of the macro is executed twice

notes:
- If the input box is removed from the macro, everything is OK
- If the macro is bound to another event, e.g. "close document", it is executed
  twice, too, but this time the _complete_ macro
- If the macro is bound to e.g. an event of a form control, everything is fine
Comment 1 Mathias_Bauer 2003-06-30 13:39:09 UTC
Fixed in RC build
Comment 2 Mathias_Bauer 2003-07-02 13:58:43 UTC
.
Comment 3 Frank Schönheit 2003-07-15 15:45:54 UTC
verified in RC1
Comment 4 Frank Schönheit 2003-07-15 15:48:00 UTC
verified in RC1
Comment 5 Frank Schönheit 2003-07-15 15:52:28 UTC
closing