OnTextObjectMouse Event

[Top]  [Chapter]  [Previous]  [Next]

Member of WPDLLInt

Declaration C#

OnTextObjectMouse(Object Sender, int Editor, int State, IWPTextObj TextObj, ref bool Ignore);

 

Declaration OCX

OnTextObjectMouse(ByVal Editor As Long, ByVal State As Long, ByVal TextObj As WPTDynInt.IWPTextObj, Ignore As Boolean)

 

This event is used for different actions the user can perform with an object:

State = 3: the use presses the middle mouse button.

State = 2: the use presses the right mouse button.

State = 1: the use presses the left mouse button.

State = 0: the user moves the mouse over the object

State = -1: the use releases the left mouse button.

State = -2: the use releases the right mouse button.

State = -3: the use releases the middle mouse button.

 

Using the reference to the object TextObj you can manipulate it. To switch a text frame (TextDynamic "Premium") you can call procedure Contents_edit.


[idh_wpdllint_ontextobjectmouse.htm]    Copyright © 2007 by WPCubed GmbH