General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › On_Default_CommandBars_Complete confusions
-
achu April 19, 2010 at 6:33 pm
On_Default_CommandBars_Complete confusions
April 19, 2010 at 6:33 pmParticipants 0Replies 1Last Activity 12 years, 2 months agoThere are some confusing descriptions in the programmer's manual. Can you elaborate what those properties and methods cause unpredictable behavior are?
In one place:
“Some properties and methods that are called from inside the On_Default_CommandBars_Complete event macro may result in unpredictable behavior, including XMetaL crashes. “another place:
“The On_Default_CommandBars_Complete event macro is a good place to carry out Command Bar customizations.”Derek Read April 19, 2010 at 8:12 pm
Reply to: On_Default_CommandBars_Complete confusions
April 19, 2010 at 8:12 pmThe documentation should state something to the effect that calling any API that displays a dialog should not be done inside On_Default_CommandBars_Complete. You should also not open a document during this event, so do not use Documents.Open or other similar APIs.
This event is really generally only meant for making changes to “Command Bars” (ie: menus and toolbars).
I'll raise this with our documentation people.
-
AuthorPosts
- You must be logged in to reply to this topic.