zoukankan      html  css  js  c++  java
  • 窗体透明,但窗体上的控件不透明(简单好用)good

    1.在Delphi中,设置窗体的AlphaBlend := true;AlphaBlendValue := 0-255; AlphaBlendValue越小窗体的透明度就越高。这种方法将会使窗体和窗体中控件都变成透明。
    2.在Delphi中,设置TransparentColor := True与TransparentColorValue := TForm.Color, 则窗体变成透明,控件不透明。
    3.使用API控制指定区域透明,如下,通过不绘制窗体四角的方法,来使四角变得圆滑透明,可在窗体Resize时调用。

    procedure TFormPadMain.SetFormTransparent;
    var
      Rgn: HRGN;
    begin
      Rgn := CreateRoundRectRgn(0, 0, Width, Height, 11, 11);
      SetWindowRgn(Handle, Rgn, True);
    end;

    http://blog.csdn.net/shuaihj/article/details/8610343

  • 相关阅读:
    configparser模块
    xml文件解析
    shutil模块 + shelve模块 二合一版
    hashlib模块
    subprocess模块和sys模块
    re模块
    os模块
    random模块
    time模块、datetime模块讲解
    洛谷P3414 SAC#1
  • 原文地址:https://www.cnblogs.com/findumars/p/5345872.html
Copyright © 2011-2022 走看看