Skip to content

Unix scroll bar issue #162

Closed
Closed

Description

@dpvdberg

ReClass is working fine on Ubuntu, but any action (like editing a value or expanding a tree node) scrolls the view all the way to the top.
Also, pressing the down arrow on the vertical scroll bar has the same effects and scrolls back up.
Grabbing the scrollbar crashes the application.

Little demo to make it more clear: video here

Click to show Stacktrace of the scrollbar crash
System.EntryPointNotFoundException: GetScrollInfo assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) ReClassNET.UI.ScrollableCustomControl.GetScrollInfo(System.Runtime.InteropServices.HandleRef,int,ReClassNET.UI.ScrollableCustomControl/SCROLLINFO)
  at ReClassNET.UI.ScrollableCustomControl.ProcessMessage (System.Windows.Forms.Message& msg) [0x0007d] in <5f529ffe9050404eabd9ec9f035b686b>:0 
  at ReClassNET.UI.ScrollableCustomControl.WndProc (System.Windows.Forms.Message& msg) [0x00043] in <5f529ffe9050404eabd9ec9f035b686b>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <29ae5f13c05642a1be782372651d31a2>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x0000b] in <29ae5f13c05642a1be782372651d31a2>:0 
  at System.Windows.Forms.NativeWindow.WndProc (System.IntPtr hWnd, System.Windows.Forms.Msg msg, System.IntPtr wParam, System.IntPtr lParam) [0x00085] in <29ae5f13c05642a1be782372651d31a2>:0

Activity

  1. KN4CK3R commented on Jul 15, 2020

    @KN4CK3R
    Member

    This problem was introduced with 98141f2. A quick fix would be to use the broken implementation when running on unix but I'm not really happy with that.

  2. KN4CK3R commented on Jul 15, 2020

    @KN4CK3R
    Member

    I rewrote the scrolling system and removed a lot custom code which was not needed. Now it works on both platforms without problems.

  3. dpvdberg commented on Jul 16, 2020

    @dpvdberg
    Author

    Thanks for the update, scrolling indeed works now.

  4. KN4CK3R commented on Jul 16, 2020

    @KN4CK3R
    Member

    You have edited your answer. Is the "scrolling to top" behaviour still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions