Home Forums General XMetaL Discussion On_Document_Open_Complete and On_Document_Activate Macro Reply To: On_Document_Open_Complete and On_Document_Activate Macro

Qing

Reply to: On_Document_Open_Complete and On_Document_Activate Macro

Thanks you Derek. This explains a lot. I am using XMetal Author Essential.
Actually my confusion comes from some unclear, or may wrong code. A opened document is not disposed when close it. Then when reopen it, only the macro On_Document_Activate is fired and On_Document_Open_Complete never runs, but, after I change the code to dispose the document when close it, the On_Document_Open_Complete runs after On_Document_Activate.  So I am wondering if some conditions exist.

Plus anther question, We customize the Command bar to add some other buttons, and according to the state the document to decide the enable the button or not, but it seems that the effect is not shown until mouse click. It makes sense in some situations, but some others not. Is there any API to refresh the command bar? I scanned the programmer's guide but no such API was found.

Appreciate you time and thank you very much.

Reply

Products
Downloads
Support