Pages: 1
Print
Author Topic: On_Default_CommandBars_Complete confusions  (Read 1032 times)
achu
Member

Posts: 39


« on: April 19, 2010, 12:33:16 PM »

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. "


another place:
"The On_Default_CommandBars_Complete event macro is a good place to carry out Command Bar customizations."

Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1550



WWW
« Reply #1 on: April 19, 2010, 02:12:38 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.
« Last Edit: April 19, 2010, 02:14:10 PM by Derek Read » Logged
Pages: 1
Print
Jump to: