| |

VerySource

 Forgot password?
 Register
Search
View: 5|Reply: 2

How to make a window's close button just hide it when I click it?

[Copy link]

2

Threads

4

Posts

5

Credits

Newbie

Rank: 1

Credits
5

 China

Post time: 2020-3-24 09:00:01
| Show all posts |Read mode
As the title, what is the difference between HIDE and CLOSE of a window?
Reply

Use magic Report

2

Threads

6

Posts

7

Credits

Newbie

Rank: 1

Credits
7

 United States

Post time: 5 day(s) ago
| Show all posts
Intercept Windows messages and then process them
Reply

Use magic Report

0

Threads

25

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 5 day(s) ago
| Show all posts
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  self.Hide;
  abort;
end;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list