Message 1 of 1
UserForm Activate & Deactivate events - A2ki vs A2k

Not applicable
01-16-2001
08:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
AutoCAD 2000 and AutoCAD 2000i seem to behave differently with regard to
Activate (and Deactivate) events for user forms.
In A2k the Activate event occurs only once when the form is first
displayed - if it is hidden and then shown again the Activate event doesn't
occur a second time.
In A2ki the Activate event occurs each time the form is shown (modally -
since all forms have to be modal in A2k). This is what I would have
expected from the description of the Activate/Deactivate events in the help
files but this isn't what happened in A2k. Now of course all my code
written for A2k won't work properly with A2ki...
Which version operates correctly?
How do I write code that will run under A2k and A2ki when there is such a
fundamental inconsistency between them?
Are there any more pitfalls like this for the un-suspecting?
--
Simon
Activate (and Deactivate) events for user forms.
In A2k the Activate event occurs only once when the form is first
displayed - if it is hidden and then shown again the Activate event doesn't
occur a second time.
In A2ki the Activate event occurs each time the form is shown (modally -
since all forms have to be modal in A2k). This is what I would have
expected from the description of the Activate/Deactivate events in the help
files but this isn't what happened in A2k. Now of course all my code
written for A2k won't work properly with A2ki...
Which version operates correctly?
How do I write code that will run under A2k and A2ki when there is such a
fundamental inconsistency between them?
Are there any more pitfalls like this for the un-suspecting?
--
Simon