Pages: 1
Author Topic: drag and drop text  (Read 1576 times)

Posts: 39

« on: November 30, 2016, 02:11:13 PM »

using XMAX (32-bit) control within form.

we are looping thru xml tags to set certain tags as protected from typing. Discovered that this code is running before the drag/drop text is actually available in the editor - thus leaving its text unprotected. The _OnDrop, _On_Document_Before_DropText, and _On_Document_After_DropText already have been triggered before the text appears in the editor. As a work-around we would like to pass around a global Boolean variable after a drag/drop, but having difficulty determining which event to reset this variable in order not to slow down editing having it run unnecessarily.

Question, what is last event (macro) triggered just before the user is allowed to type, and is available with the xmax control?  Not having any luck with _OnUpdateUI, _GotFocus, or _OnDrop.

Didn't encounter this issue with XMetaL Author Essential 5.5?


Posts: 57

« Reply #1 on: November 30, 2016, 06:31:14 PM »

XMAX will fire callback methods through the COM event sink, _IXMetaLControlEvents, and also fire the equivalent event macros.  Which are you using?

The On_Update_UI event macro (or OnUpdateUI event sink callback) is the last event fired prior to allowing users to interact with the XML via keyboard or mouse.

From you description, it is not clear.  You might want to contact Customer Support directly.

Addam Smith, XMetaL Project Lead & Architect
JustSystems Canada Inc.
Pages: 1
Jump to:  

email us