右键单击检测标签阵列? [英] Right click detection on label array?

查看:88
本文介绍了右键单击检测标签阵列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB6.0

虽然我知道在数组中的标签上单击鼠标左键会将数组索引放置在LabelName_Click(button As Integer)的button变量中并且确实如此,但令我惊讶的是,右键单击也是如此.

我希望检测单击标签数组的任何成员时单击的鼠标按钮是向右还是向左.

有可能吗?

谢谢

:Ron

VB6.0

While I understand that left clicking on a label in an array will place the array index in the button variable of LabelName_Click(button As Integer) and it does, to my surprise this is also the case for right-click.

I wish to detect whether the mouse button clicked was right or left when clicking on any of the members of the label array.

Is is possible to do?

Thanks

:Ron

推荐答案

由于缺乏自我厌恶性,我不做VB6,但是,看这段代码,您将得到一个参数称为按钮".当然可以告诉您按下了哪个按钮?
I don''t do VB6, due to a lack of self loathing, however, looking at this code, you''re getting passed a parameter called ''button''. Surely that tells you which button was pressed ?


这篇关于右键单击检测标签阵列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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