Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Weird Treeview control behaviour on touch screen application

Weird Treeview control behaviour on touch screen application

Weird Treeview control behaviour on touch screen application

I have a touch screen tablet application with a treeview control.

This issue occurs when the tree view is populated and activates the scroll bar.

If you happen to swipe up or down on the clear space in the tree view control (But not on the scrollbar), the entire form will move up or down a bit in tandem, then move back to its original position when the finger is moved off the screen or moved in the opposite direction. The contents of the tree view do also move up and down as expected, but the form moves in addition. The amount of movement is not much but is quite noticeable.

I put a NODEFAULT in the mousemove event of the treeview but I believe this has already fired in response to the mouse/finger movement, so this had no effect.
I stored the position of the form in a property and put a bit of code in the form's move event to move the form back to the original position. But this is now actually worse as the form jitters back to the top position instead of holding the down or up position until the finger is released

I set the treeview scroll property to false and this has no effect other than disabling the scroll bars which defeats the purpose anyway.


RE: Weird Treeview control behaviour on touch screen application

Well... All I can say is, I have also seen odd behavior on a touch screen - if I remember correctly, some things don't even work. I think you have to assume that FoxPro is NOT a modern platform and was never intended to be used with a touch screen since they didn't exist at the time. My solution is to not use them on touch screens and I make it clear to anyone who uses an app of mine that it is meant for use with a mouse and not a finger. It is what it is. :)

Larry (TPG)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close