• <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 閱讀(725) 評論(0)  編輯 收藏 引用 所屬分類: C++Builder

            久久96国产精品久久久| 久久夜色精品国产www| 久久久国产乱子伦精品作者| 97久久超碰国产精品2021| 91精品国产91久久久久久| 青青久久精品国产免费看| 久久精品a亚洲国产v高清不卡| 久久AⅤ人妻少妇嫩草影院| 久久婷婷国产综合精品 | 久久成人永久免费播放| 伊人久久大香线蕉综合5g| 久久99国产精品久久99果冻传媒 | 久久精品国产91久久综合麻豆自制| 久久综合亚洲鲁鲁五月天| 久久综合给合久久狠狠狠97色| 2020最新久久久视精品爱| 亚洲精品乱码久久久久久蜜桃不卡| 国产精品伊人久久伊人电影| 久久久久亚洲AV无码专区体验| 亚洲国产日韩欧美综合久久| 国产高潮国产高潮久久久91 | 国产精品久久免费| 欧美丰满熟妇BBB久久久| 久久只这里是精品66| 久久久久亚洲爆乳少妇无| 99久久夜色精品国产网站| 国产欧美久久一区二区| 久久久av波多野一区二区| 少妇内射兰兰久久| 亚洲AV无码久久| 久久香蕉超碰97国产精品| 久久久久亚洲精品天堂| 91精品国产高清久久久久久io | 久久久久九国产精品| 久久99亚洲综合精品首页| 久久精品综合一区二区三区| 久久久久久国产精品无码下载| 久久91这里精品国产2020| 久久久WWW成人| 免费精品国产日韩热久久| 亚洲综合精品香蕉久久网|