怎么让StaticText透明

解决方案 »

  1.   

    好像是这个,我看别人也是这么回答的
    transparent   :=   true;
      

  2.   

    好像不行可以使用第三方控件Raize中的RzStatusPane1控件
      

  3.   

    transparent   :=   true;这个貌似不行
      

  4.   

    Delphi2009/2010以后的版本中,StaticText组件才有Transparent属性。Delphi7中只有Label才有透明属性。
      

  5.   

    一定要StaticText,换Label不行?
      

  6.   

    你要有HANDLE?否则的话用TLABEL一样的
      

  7.   

    在exe目录下生成一个以可执行文件名加manifest后缀的文本文件(如果可执行文件是p.exe,这个文件就叫p.exe.manifest),里面是xml格式的配置文件,这样透明就起作用了。
    一年多的提问不知道还需要不,还是分享一下吧,毕竟这个问题在网上到目前为止还没找到解决方法。
    配置文件内容如下:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity  version="1.0.0.0"  processorArchitecture="X86"  name="CompanyName.ProductName.YourApp"  type="win32" />
    <description>Your application description here.</description>
    <dependency>  <dependentAssembly>  <assemblyIdentity  type="win32"  name="Microsoft.Windows.Common-Controls"
    version="6.0.0.0"  processorArchitecture="X86"  publicKeyToken="6595b64144ccf1df"  language="*"  />  </dependentAssembly> </dependency></assembly>