Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11577

Re: PB 12.5.1 .Net - How to stop arrow keys from scrolling datawindow row?

$
0
0

Hi Duncan,

 

I don't think you can because they haven't exposed the KeyEventArgs parameter. If you try to manually map a user defined event the compiler complains: "'wABC' does not contain a definition for 'ue123' and no extension method 'ue123' accepting a first argument of type 'wABC' could be found". I tried mapping it as a dw event and then as a window private function without success. Both methods yield the same error.

 

Here's the dw event logic I tried. Maybe you'll see something I missed...

 

XAML dw property

KeyDown="ue_dwnkey"

 

Script ue_dwnkey event

Parms

System.Object sender

System.Windows.Input.KeyEventArgs e

 

choose case e.Key

    case System.Windows.Input.Key.Down!, System.Windows.Input.Key.Up!

        e.handled = true

end choose

 

hth,

Mark


Viewing all articles
Browse latest Browse all 11577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>