Вниз
Скачать: CL | DM;

Создание полупрозрачной формы   Найти похожие ветки 

← →
СлБ   (2003-05-28 08:02) [0]

Как сделать форму полупрозрачной (или любой степени прозрачности)?


← →
Мое имя   (2003-05-28 09:28) [1]

alphablend


← →
NAlexey ©   (2003-05-28 09:33) [2]


procedure TForm1.Button1Click(Sender: TObject);
procedure SetAlphaBlendTransparent(WHandle: HWnd; Value: Byte);
var
User32: Cardinal;
SetLayeredWindowAttributes: function (hwnd: LongInt; crKey: byte; bAlpha: byte; dwFlags: LongInt): LongInt; stdcall;
begin
User32 := LoadLibrary("USER32");
if User32 <> 0
then
try
SetLayeredWindowAttributes := GetProcAddress(User32, "SetLayeredWindowAttributes");
if @SetLayeredWindowAttributes <> nil
then
SetLayeredWindowAttributes(WHandle, 0, Value, LWA_ALPHA);
finally
FreeLibrary(User32);
end;
end;
var
I: integer;
begin
SetWindowLong(Handle, GWL_EXSTYLE,
GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_LAYERED);
SetAlphaBlendTransparent(Handle, 200);
end;


← →
СлБ   (2003-05-29 11:29) [3]

Спасибо



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.016 c
1-100727
Navi
2003-07-19 08:06
2003.07.31
Новый шрифт в компоненте


14-100975
Ower
2003-07-15 21:23
2003.07.31
Random


14-100913
sagchat
2003-07-13 16:39
2003.07.31
Помогите выбрать видюху


3-100560
Вован
2003-07-07 12:35
2003.07.31
Добавляю динамически поле в DataSet а при его открытии


3-100544
Spawn
2003-07-10 21:39
2003.07.31
Ссылочная целостность




   Наверх