Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

What are the two buttons to attach, so that they are at the bottom center? Find similar branches


Сержик   (2001-12-19 15:45) [0]

Форма растякивается и надо, чтобы OK и CANCEL были внизу по центру.



Юрий Зотов   (2001-12-19 15:52) [1]

Напишите код выравнивания кнопок в обработчике OnResize.



v-o-y-a-g-e-r   (2001-12-19 16:03) [2]

а можно кинуть панель , на нее кнопки, у панели выставить размеры и алигмент...



Jony   (2001-12-19 16:49) [3]

В Anchors кнопок оставить True только в akTop или в akBottom.



Dimka Maslov   (2001-12-19 17:21) [4]

function Center(Value:Integer; HiValue:Integer; LoValue:Integer=0):Integer;
asm
sub edx, ecx
sub edx, eax
shr edx, 1
add ecx, edx
mov eax, ecx
end;

procedure TForm1.FormResize(Sender: TObject);
begin
OkButton.Left:=Center(OkButton.Width+CancelButton.Width+8, ClientWidth);
CancelButton.Left:=OkButton.Left+OkButton.Width+8;
OkButton.Top:=ClientHeight-OkButton.Height-8;
CancelButton.Top:=OkButton.Top;
end;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.82 MB
Time: 0.042 c
3-21908
Dup
2001-11-28 13:27
2002.01.08
Application hang


1-22201
T2
2001-12-16 07:13
2002.01.08
Sound Spectr


1-22120
Leviathan
2001-12-19 22:26
2002.01.08
Libraries of icons


3-21990
Skyr
2001-12-04 03:58
2002.01.08
Problem with LookUp - margins


1-22149
Roman_zdrj
2001-12-20 12:43
2002.01.08
calls from dll





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish