1 (edited by tcoton 2015-07-14 08:31:19)

Topic: How to manage the form window's buttons

Hi Dmitry

how could we create a form with only the "close" button (red button with cross) or without this button?

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=1192

Post's attachments

Attachment icon window_button.png 3.93 kb, 275 downloads since 2015-07-14 

Re: How to manage the form window's buttons

Hello,


Yes.

A form with only the "close"

procedure Form1_OnShow (Sender: string; Action: string);
begin
    Form1.BorderIcons := biSystemMenu;
end;

A form without buttons

procedure Form1_OnShow (Sender: string; Action: string);
begin
    Form1.BorderIcons := 0;
end;
Dmitry.

Re: How to manage the form window's buttons

Great, thanks Dmitry!

Re: How to manage the form window's buttons

And how to manage ShowMessage border icons like the example below where I want to remove the close icon?

procedure MenuClick6 (Sender: string);
begin
     ShowMessage('Version 1.0.0 Date 2015/07/08');

end;

Re: How to manage the form window's buttons

ShowMessage don't have this option.

Dmitry.