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

Скрыть заголовок формы   Найти похожие ветки 

 
Anar ©   (2002-10-30 16:31) [0]

Как скрыть заголовок формы и чтоб при этом она оставалась трёхмерной. Если сделать BorderStyle None, то форма не имеет 3d краёв. Как сделать трёхмерные края?


 
Aristarh ©   (2002-10-30 16:37) [1]

procedure ShowTileBar(fmForm: TForm);
var Save: Longint;
Begin
With fmForm do
Begin
if BorderStyle = bsNone then Exit;
Save := GetWindowLong(Handle, GWL_STYLE);
if (Save and WS_CAPTION) <> WS_CAPTION then
begin
case BorderStyle of
bsSingle, bsSizeable:
SetWindowLong(Handle, GWL_STYLE, Save or WS_CAPTION or
WS_BORDER);
bsDialog:
SetWindowLong(Handle, GWL_STYLE, Save or WS_CAPTION or
DS_MODALFRAME or WS_DLGFRAME);
end;
Height := Height + GetSystemMetrics(SM_CYCAPTION);
Refresh;
end;
End;
End;

Procedure HideTileBar(fmForm: TForm);
var Save: Longint;
begin
With fmForm do
Begin
if BorderStyle=bsNone then Exit;
Save := GetWindowLong(Handle, GWL_STYLE);
if (Save and WS_CAPTION) = WS_CAPTION then
begin
case BorderStyle of
bsSingle, bsSizeable:
SetWindowLong(Handle, GWL_STYLE, Save and (not WS_CAPTION) or
WS_BORDER);
bsDialog:
SetWindowLong(Handle, GWL_STYLE, Save and (not WS_CAPTION) or
DS_MODALFRAME or WS_DLGFRAME);
end;
Height := Height-GetSystemMetrics(SM_CYCAPTION);
Refresh;
end;
End;
end;



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

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



Память: 0.45 MB
Время: 0.011 c
1-34111
kserg@ukr.net
2002-10-31 17:47
2002.11.11
ошибка BORDBK50.dll is missing or not registred


3-33889
AM
2002-10-22 13:43
2002.11.11
Как заставить НД не обманывать?


1-33988
maxim_caban
2002-11-01 17:24
2002.11.11
Интерфейс как в Д5


1-34032
tytus
2002-11-03 00:48
2002.11.11
Обновление OLEAUT32.DLL


1-34106
jcrush
2002-10-31 16:34
2002.11.11
про скины




   Наверх