70000289 Iterate through the highlighted items with TAB key

Article 70000289
Type Wish
Product Engine
Version 7002
Date Added 2/6/2015
Fixed (2/13/2015)
Submitted by Alessio Francioso

Summary

Iterate through the highlighted items with TAB key.

Solution

Set somewhere these values
vdFramedControl.BaseControl.ActiveDocument.SelectionPreviewUpKey = Keys.Tab;
vdFramedControl.BaseControl.ActiveDocument.SelectionPreviewDownKey = Keys.Tab;

//And also in your main form you should use a code like this
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if ((int)msg.WParam == 9) //9 = Tab
{
if (vdFramedControl.BaseControl.ActiveDocument.ActiveLayOut.OverAllActiveActions != null && vdFramedControl.BaseControl.ActiveDocument.ActiveLayOut.OverAllActiveActions.Count == 1)
{
vdFramedControl.BaseControl.ActiveDocument.ActiveLayOut.OverAllActiveAction.KeyDown(new KeyEventArgs(Keys.Tab));
}
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}

Send comments on this topic.