Divelements Community
Customer discussion of all Divelements products

ExplorerBar scrolls up when clicked

Latest post 05-16-2007 17:03 by Obexto. 4 replies.
  • 05-16-2007 9:04

    • Obexto
    • Top 500 Contributor
    • Joined on 05-16-2007
    • Posts 4

    ExplorerBar scrolls up when clicked

    Hello,

    I added a Navisight ExplorerBar (Dock Fill) in a dockable window (SandDock).
    TaskPanes are programmatically added into this ExplorerBar.
    ImageHyperlinks are programmatically added into each taskPane.

    A vertical scrollbar appears.

    If the user scrolls down and clicks an hyperLink, it's ok for the first time.
    Just after this first click (no action meanwhile), if the user clicks a second time (on the same hyperlink or another), the control scrolls up suddenly, cancelling the click !

    Did you experience this ? Is there a fix or a particluar way to parameter each control I use ?

    (The code is very simple for the moment)
    Frédéric
  • 05-16-2007 10:32 In reply to

    Re: ExplorerBar scrolls up when clicked

    Hmm, I can't reproduce this with the demo application, could you possibly post a simple example project that shows the error?
  • 05-16-2007 13:11 In reply to

    • Obexto
    • Top 500 Contributor
    • Joined on 05-16-2007
    • Posts 4

    Re: ExplorerBar scrolls up when clicked

    Actually, it seems to me that it's a problem with the dockable window and not the explorer bar.

    I made a little project to show the problem.
    With this little demo, the problem doesn't appear as often as in the true project. But you will be able to see it.

    I noticed that it appears when the dockable window has lost focus when you click again on a link.
    So, develop the task panes, scroll down, click a link, then click the document I added to make the dockable window to loose focus, and then click again on a link.

    Thanks for your help.
    Frédéric
  • 05-16-2007 16:36 In reply to

    Re: ExplorerBar scrolls up when clicked

    Ah, interesting. This is actually normal behaviour for scrollable controls in the framework. SandDock activates the window because you're clicking inside it, and when scrollable controls are activated the framework tries to scroll so that the focused control is visible.

    Unfortunately, hyperlinks do not take the focus on mouse click (by default) so that will probably be the first hyperlink in the container rather than the one being clicked on.

    There's no good solution to this problem. As a workaround, you could cause a hyperlink to become focused when the user presses the mouse button over it. We have added a property to make this easier for the next version, but in the meantime you could handle the MouseDown event of the hyperlinks and set focus on them within that event. That should stop the scrolling from happening.
  • 05-16-2007 17:03 In reply to

    • Obexto
    • Top 500 Contributor
    • Joined on 05-16-2007
    • Posts 4

    Yes [Y] Re: ExplorerBar scrolls up when clicked

    Understood.

    I know now how to solve the problem.

    Thanks a lot Tim !
    Frédéric
Page 1 of 1 (5 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems