General XMetaL Discussion
achu April 19, 2010 at 6:33 pm
On_Default_CommandBars_Complete confusionsApril 19, 2010 at 6:33 pmParticipants 0Replies 1Last Activity 12 years, 7 months ago
There 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. “
“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 confusionsApril 19, 2010 at 8:12 pm
The 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.
- You must be logged in to reply to this topic.