• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            隨筆 - 1, 文章 - 9, 評論 - 4, 引用 - 0
            數據加載中……

            OnClose

            Occurs when the form closes.

            enum TCloseAction { caNone, caHide, caFree, caMinimize };
            typedef void __fastcall (__closure *TCloseEvent)(System::TObject* Sender, TCloseAction &Action);
            __property TCloseEvent OnClose = {read=FOnClose, write=FOnClose, stored=IsForm};

            Description

            Use OnClose to perform special processing when the form closes. The OnClose event specifies which event handler to call when a form is about to close. The handler specified by OnClose might, for example, test to make sure all fields in a data-entry form have valid contents before allowing the form to close.

            A form is closed by the Close method or when the user chooses Close from the form's system menu.

            The TCloseEvent type points to a method that handles the closing of a form. The value of the Action parameter determines if the form actually closes. These are the possible values of Action:

            Value    Meaning

            caNone    The form is not allowed to close, so nothing happens.
            caHide    The form is not closed, but just hidden. Your application can still access a hidden form.
            caFree    The form is closed and all allocated memory for the form is freed.
            caMinimize    The form is minimized, rather than closed. This is the default action for MDI child forms.

            If a form is an MDI child form, and its BorderIcons property is biMinimize, then the default Action is caMinimize. If a MDI child form does not have these settings, the default Action is caNone, meaning that nothing happens when the user attempts to close the form.

            If a form is an SDI child form, Action defaults to caHide.

            To close the form and free it in an OnClose event, set Action to caFree.

            Note:    When the application shuts down, the main form receives an OnClose event, but any child forms do not receive the OnClose event.

            posted on 2009-01-06 16:26 EiN 閱讀(722) 評論(0)  編輯 收藏 引用 所屬分類: C++Builder

            久久精品嫩草影院| 日本加勒比久久精品| 久久久久久夜精品精品免费啦| 午夜天堂av天堂久久久| 99久久免费国产精品热| 久久久久久毛片免费看| 久久精品一区二区三区AV| 日韩精品久久无码人妻中文字幕| 国内精品久久久久影院一蜜桃| 久久久久免费视频| 久久精品国产亚洲AV麻豆网站 | 国产69精品久久久久99| 国产精品久久久久久久久软件| 麻豆亚洲AV永久无码精品久久| 国产精品成人精品久久久| 久久狠狠爱亚洲综合影院| 91亚洲国产成人久久精品网址| 久久99热这里只有精品国产| 国内精品欧美久久精品| 国产精品久久久久国产A级| 亚洲午夜福利精品久久| 精品国产综合区久久久久久 | 久久久久国产一区二区三区| 新狼窝色AV性久久久久久| 伊人伊成久久人综合网777| 久久福利青草精品资源站免费| 久久久www免费人成精品| 久久se这里只有精品| 久久综合九色综合97_久久久| 亚洲国产另类久久久精品 | 香蕉久久av一区二区三区| 精品久久久久成人码免费动漫| yellow中文字幕久久网| 久久国产一区二区| 久久精品国产秦先生| 久久久久久久久无码精品亚洲日韩| 久久精品国产AV一区二区三区 | 亚洲人成网站999久久久综合 | 日韩乱码人妻无码中文字幕久久| 免费久久人人爽人人爽av| 欧美黑人激情性久久|