Unable to tab through the data grid cells when a plugin is hosted in Delphi exe


(Rohit Bajaj) #1

I am unable to tab through the cells of a datagrid when I host a wpf plugin in a Delphi exe. But hosting the same plugin in WPF application works fine.


(Rohit Bajaj) #2

Hydra grid test.zip (5.0 MB)


(RemObjects) #3

Thanks, logged as bugs://79755


(RemObjects) #4

bugs://79755 got closed with status fixed.


(antonk) #5

Hello

Seems your testcase uses 3rd party components from Infragistics. Unfortunately we cannot provide out of the box support for all existing WPF controls. so starting next Beta we will expose an additional protected method in WPF plugins

protected override bool IsTabAcceptedByControl(object control, bool leftCtrl, bool rightCtrl, bool leftShift, bool rightShift)
{
    return base.IsTabAcceptedByControl(control, leftCtrl, rightCtrl, leftShift, rightShift);
}

This method is called when Tab is pressed and plugin needs to decide whether the currently focused control should process the Tab key pressed or the plugin should change focused control.

The method accepts currently focused control and 4 flags indicating is left control, right control, left shift, right shift keys are pressed.

If this method returns true then plugin will relay Tab press to the currently selected control and will let it process this keypress. Otherwise the usual focus change procedure will be performed.

Don’t forget to call the base implementation to ensure that TextBox controls with AcceptTab flag set are processed correctly.

Regards


(Rohit Bajaj) #6

Thanks for implementing this quickly. It fixes the issue for us.