我想让Panel变透明,以显示下面的图片。应该怎么做?

解决方案 »

  1.   

    把图片放在panel 的上面不更好吗
      

  2.   

    1。panel颜色 设为form上唯一的一种颜色
    2。将form的属性
        TransparentColor 设为 True
        TransparentColorValue 设为panel颜色
    这样panel就变透明了
      

  3.   

    俺一直都是把图片放在panel 的上面,挺好的
      

  4.   

    编一个组件从TCustomPanel继承
    添加2个属性值 标识是否透明,透明度
    覆盖Paint
    procedure TCustomPanel.Paint;
      

  5.   

    用1stClass控件中的fcPanel,将transparent属性设为true就可以了。
      

  6.   

    我看还是把panel的visible属性设置为false简单
      

  7.   

    因为一个背景图中有多个panel,所以不能将图放在panel上。
      

  8.   

    回复:caiwx(流浪星) 
        用1stClass控件中的fcPanel,将transparent属性设为true就可以了。
      
    我用的是Delphi7, 1stClass控件在那?