根据用户点击的位置设置跟踪栏值 [英] Set trackbar value depending on where user has clicked

查看:111
本文介绍了根据用户点击的位置设置跟踪栏值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
我有一个轨迹栏.我需要根据位置设置跟踪栏值
用户单击了该栏(例如mouse_up事件).但是
事件参数仅告诉我有关x和y的位置,所以
上...如果我有最快捷的方法,我可以尝试解决...也许你
会知道如何描述任务吗?
问候
PK

[edit]乱码,粗体,代码块已删除,主题与问题有关-OriginalGriff [/edit]

Hi.
I have a trackbar. I need to set trackbar value depending on where
user has clicked on the bar ( mouse_up event for example ). However
event arguments are telling me only about x and y position and so
on... If i had hittest method i could try to work it out... Maybe you
will know how to do described task?
Regards
PK

[edit]Spurious big, bold, code blocks removed, subject made relevant to question - OriginalGriff [/edit]

推荐答案

TrackBar 自动执行此操作.如果要更好地控制它的跳跃幅度,请更改LargeChange SmallChange属性.
The TrackBar automatically does that. If you want finer control over how much it jumps, change the LargeChange and SmallChange properties.


这篇关于根据用户点击的位置设置跟踪栏值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆