将标签上的鼠标反射到按钮上 [英] reflect mouse on label to button

查看:76
本文介绍了将标签上的鼠标反射到按钮上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不知道我能为问题写些什么。字段......


i有一个按钮,我在上面贴了一个标签,我这样做了,透明度和其他东西对我来说不是问题,问题是,当我将鼠标移到标签上,按钮不再具有效果。当鼠标悬停在它上面时(蓝色在vista / 7中)所以我想做的是,当鼠标实际上在标签上方(标签在按钮上方)时,不知何故使按钮认为鼠标在它上面,然后制作它蓝色......,对不起,如果你不懂我的英语:(我不知道怎么解释这个。

解决方案

忘了添加,我不能在按钮上使用draw(OnPaint)文本,因为它看起来像这样:


为什么要使用标签?

为什么不使用按钮的文本功能?


我想将文本放在不同的位置,而不仅仅是在中间...,它不会只有单行文本(如确定,取消或其他任何内容)。


first, i don''t know what could i possibly write for the "question" field...

i have a button, and i put a label over it, i did that, and transparency and other things are not a problem for me, the problem is, when i take mouse over the label, the button no more has the "effect" which comes when mouse is over it (blue colored in vista/7) so what i wanna do is, somehow make button think the mouse is over it when the mouse is actually over the label (that label is over button), and make it blue..., sorry if you don''t get my english :( i don''t know how to explain this.

解决方案

forgot to add, i cannot use draw (OnPaint) text over button cause it looks something like this:


Why are you using a label at all?
Why are you not using the text feature of the button?


i want to place the text at different locations, not just in middle..., and it will NOT have only a single line of text (like OK, Cancel or anything else).


这篇关于将标签上的鼠标反射到按钮上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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