Forum Discussion

matthew_morgan's avatar
matthew_morgan
Occasional Contributor
12 years ago

MouseWheel action on WPF ListView issue?

In the WPF Orders application I added a bunch of records so the ListView would be able to scroll.  I tried the code below:






var ctrl = Sys.Process("Orders").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("gridMain").WPFObject("OrdersView");


    ctrl.MouseWheel(-200);





No matter what I put for the '# of detents' parameter, it seems to scroll down by 1 detent (-1).  I tried -1, -2, 2, 1, 200, -1100...they all resulted in the same result.



I was wondering if anyone else has seen this and if I am just missing something

3 Replies

    • lanteca's avatar
      lanteca
      New Contributor

      Hi Matthew,

       

      It's a long shot (since the post has two years), but I was wondering if you ever received a"workaround" for this issue?

       

      I'm having the same problem using TestComplete12.

       

      Cheers,

       

      Lante