Вниз
Скачать: 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.45 MB
Время: 0.016 c
14-100906
comwad
2003-07-14 14:41
2003.07.31
Компонент или описания работы с SNMP


1-100715
aga
2003-07-18 17:05
2003.07.31
TreeView


1-100814
DimaS
2003-07-17 13:49
2003.07.31
Как отследить изменения в каталоге?


1-100782
Interested
2003-07-16 17:36
2003.07.31
Как загрузить иконку из ресурса exe файла, зная её ID?


14-100932
copyr25
2003-07-11 22:01
2003.07.31
Кто, по Вашему, будет Президентом в России? В 2008-м году?




   Наверх