HowTo : How to call the magnifier transparently through a command by a keyboard key and the point to be passed to the active command
Article | 60001074 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 2/5/2010 |
Submitted by | Makaroynhs |
Keywords | |
Subject
How to call the magnifier transparently through a command by a keyboard key and the point to be passed to the active command
Summary
How to call the magnifier transparently through a command by a keyboard key and the point to be passed to the active command
Solution
You can use a code like :
private void Form1_Load(object sender, EventArgs e)
{
vdFramedControl.BaseControl.KeyDown +=
new KeyEventHandler(BaseControl_KeyDown);
}
void
BaseControl_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.ControlKey) doc.ActionUtility.StartUserMagnifier(doc, 3, 210, -100);
}
Note this applies to version 6016 and greater.