How Delphi creates a close event

Updated on technology 2024-08-06
13 answers
  1. Anonymous users2024-02-15

    Write ** in the onclose event.

  2. Anonymous users2024-02-14

    close is the normal closing method.

    Free and destroy are not closed methods but rather release the created object and do not close the program.

    Other closing methods are called by calling the API, such as the way to end the process, which is generally used, and in normal cases, only close is used

  3. Anonymous users2024-02-13

    delphi displays and closes the window through the close of the window and the show of the window, it should be noted that all other windows will be closed after the main window is closed, if the other windows are dynamically created before the show, you need to use ** to start the form after the creation is completed.

  4. Anonymous users2024-02-12

    form1 uses dynamic generation, when :=cafree;

  5. Anonymous users2024-02-11

    The closing of a delphi subwindow triggers the onclose event for that subwindow.

  6. Anonymous users2024-02-10

    Trigger order: Trigger closeQuery event -> trigger onclose event -> trigger ondestroy event.

  7. Anonymous users2024-02-09

    Select From, select Events, OnClose, and double-click to enter the event compilation.

  8. Anonymous users2024-02-08

    ;You didn't call, of course not.

    And if you don't release formcreate when you close, it will only be called once, so your ** won't be called in it.

  9. Anonymous users2024-02-07

    for i:=0 to do

    The front is increased. FormCreate will be called once when the form is created, and will not be called again, because your form is not created every time, it is just hidden and displayed.

  10. Anonymous users2024-02-06

    1. The process of defining the trigger matter at the beginning of all procedures: btnevent(); begin ..Then dynamically set the process to the response of the response controlvar btn : tbutton; begin btn :

    end; .Here set the properties of the dynamic control := btnevent(); Assignment end;

  11. Anonymous users2024-02-05

    Your request is unclear and written in the component? Is it still written in the example of the testimonies?

  12. Anonymous users2024-02-04

    "Remain the same"What is the meaning? If you write "no" now, the dialog box closes, and nothing else happens.

  13. Anonymous users2024-02-03

    Added form, device as the main form. Device login interface and write a verification program. You can see the effect when you debug it!

Related questions
23 answers2024-08-06

Please modify it yourself as needed.

procedure addlink; >>>More

15 answers2024-08-06

In form1, write the following **:

Can. >>>More

14 answers2024-08-06

procedure : tobject);

var sp : tstringlist; >>>More

11 answers2024-08-06

I don't know what event you put it in, mine is in the paste click of the floating menu.

5 answers2024-08-06

procedure : tobject);

vararr:array of array of string; >>>More