Вниз
Скачать: 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.012 c
4-101026
dimonf
2003-05-28 11:02
2003.07.31
Подскажите какая функция в API отвечает за вывод PopupMenu???


1-100820
vvn
2003-07-17 14:58
2003.07.31
Help!!! TCustomControl сделать прозрачным


14-100876
Niobe
2003-07-16 08:51
2003.07.31
ели у Вас есть пример как подключить хелпу


11-100650
romychk
2002-11-25 10:24
2003.07.31
Базы данных.


1-100816
@Ujin
2003-07-17 15:12
2003.07.31
В чем разница? : M2 := TMemo(M1) и M2 := (M1 as TMemo)?




   Наверх