需要一个像按钮一样的图像 [英] Need an images to act like a button

查看:86
本文介绍了需要一个像按钮一样的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个像按钮一样的图像,

在按钮的属性中,你可以选择设置下图,所以

如果你推按钮,出现一个图像。

但是当你按住鼠标并将光标移离按钮时,它会返回到它的原始状态。


如果你使用图像和mousedown选项,它会保持在那种状态。


那么,有没有图像的解决方案?

所以它会再次改变。

或者你可以改变按钮的样式,这样就不会再像按钮了。它看起来像是一个图像。 />

(PS。如何将exe样式更改为WS_EX_STATICEDGE)

I need an images to act like a button ,
In the button''s properties , you have the option to set an downpicture , so
If you push the button , there appears an image .
BUT when you hold the mouse down and move the cursor away from the button , it returns to it''s origional state .

And if you do it with an image and mousedown option , it stays in that state .

So , is there an solution for the images ?
So it would change back again .
Or could you change the style of the button so it wouldn''t look like a button no more .and it would appear to be an image .

(PS. how do I change the exe style to WS_EX_STATICEDGE )

推荐答案


我需要一个像按钮一样的图像,

在按钮的属性中,你可以选择设置下图,所以

如果按下BU tton,出现一个图像。

但是当你按住鼠标并将光标移离按钮时,它会返回到它的原始状态。


如果你使用图像和mousedown选项,它会保持在那种状态。


那么,是否有图像解决方案?

所以它会再次改变。

或者你可以改变按钮的样式,这样就不会再像按钮了。它看起来像是一个图像。


(PS。如何将exe样式更改为WS_EX_STATICEDGE)
I need an images to act like a button ,
In the button''s properties , you have the option to set an downpicture , so
If you push the button , there appears an image .
BUT when you hold the mouse down and move the cursor away from the button , it returns to it''s origional state .

And if you do it with an image and mousedown option , it stays in that state .

So , is there an solution for the images ?
So it would change back again .
Or could you change the style of the button so it wouldn''t look like a button no more .and it would appear to be an image .

(PS. how do I change the exe style to WS_EX_STATICEDGE )



我一直在玩你所说的内容,这似乎工作得很好:

I''ve been playing around with what you said and this seemed to work just fine:

展开 | 选择 | Wrap | 行号


图像。背景?


=>适用于按钮,但不能用于图像...


不,我在说什么类似这样的事情:





Image. background?

=>works just fine for buttons , but not for images ...

No , I''m talking about something like this :
附加文件
buttons problem.zip (6.3 KB,66 views)
Attached Files
buttons problem.zip (6.3 KB, 66 views)



图片。背景?


=>适用于按钮,但不能用于图像...


不,我在说什么类似这样的事情:
Image. background?

=>works just fine for buttons , but not for images ...

No , I''m talking about something like this :



使用该代码,但不改变背景颜色而是改变其中的图像。


代替编写image1.backcolor,使用image1.picture

use that code, but instead of changing the background color change the image in it.

instead of writing image1.backcolor, use image1.picture


这篇关于需要一个像按钮一样的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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