• <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
            數(shù)據(jù)加載中……

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

            久久99国产精品久久| 2021精品国产综合久久| 久久久久97国产精华液好用吗| 99久久综合狠狠综合久久| 久久免费视频6| 久久久无码一区二区三区| 国产欧美久久一区二区| 久久综合久久伊人| 日本人妻丰满熟妇久久久久久| 伊人丁香狠狠色综合久久| 久久人人爽人人爽AV片| 久久精品国产亚洲AV香蕉| 久久青青国产| 久久国产成人精品麻豆| 久久热这里只有精品在线观看| 国产高潮久久免费观看| 精品国际久久久久999波多野| 亚洲欧美日韩久久精品| 国产精品日韩深夜福利久久| 亚洲精品无码成人片久久| 久久国产精品免费| 久久96国产精品久久久| 欧洲成人午夜精品无码区久久 | 久久免费小视频| 国产精品成人久久久| 亚洲午夜久久久精品影院 | 人妻少妇精品久久| 久久亚洲精精品中文字幕| 久久综合亚洲鲁鲁五月天| 久久国产精品视频| 亚洲综合婷婷久久| 久久精品一区二区| 国产99久久精品一区二区| 婷婷五月深深久久精品| 久久国内免费视频| 性做久久久久久久久浪潮| 日日狠狠久久偷偷色综合免费| 青青国产成人久久91网| 中文字幕一区二区三区久久网站| 99久久精品国产高清一区二区| 男女久久久国产一区二区三区|