带有rtl布局的背景图片 [英] Background image with rtl layout

查看:68
本文介绍了带有rtl布局的背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我遇到表格背景图片的问题,
当我将RightToLeftLayout属性设置为不正确时,将窗体的背景分散化并返回到默认的BackColor并可以更改颜色,
但是即使更改图像,图像仍然无法显示.

Hello, I am facing a problem with background image of the form,
when I set the RightToLeftLayout property ture the background of the form disappered and return to the defult BackColor and could change the color,
but the image still disappered even if change it.

推荐答案

这是此问题的根本原因.当RightToLeftLayout设置为Yes时,不支持所有者绘制.所有者绘制事件仍然会发生,但是您在这些事件中编写的任何代码的行为都没有定义.此外,不支持BackgroundImage,Opacity,TransparencyKey和绘画事件.参考: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.righttoleftlayout.aspx [
Here is the root cause for this problem. Owner draw is not supported when RightToLeftLayout is set to Yes. The owner draw events will still occur, but the behavior of any code you author in these events is not defined. Additionally, BackgroundImage, Opacity, TransparencyKey, and the painting events are not supported. Ref: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.righttoleftlayout.aspx[^]


这篇关于带有rtl布局的背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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