• <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

            婷婷久久精品国产| 久久本道伊人久久| 亚洲国产精品无码久久98| 久久精品中文字幕无码绿巨人 | 久久夜色精品国产噜噜噜亚洲AV| 蜜桃麻豆WWW久久囤产精品| 久久综合给合久久狠狠狠97色69| 狠狠色伊人久久精品综合网| 午夜欧美精品久久久久久久 | 久久亚洲AV成人无码软件| 麻豆AV一区二区三区久久 | 亚洲AV无码成人网站久久精品大| 精品久久一区二区| 久久夜色精品国产噜噜亚洲AV| 精品视频久久久久| 日本一区精品久久久久影院| 国产精品99久久久精品无码| 99久久99久久精品国产片| 国产成人精品久久二区二区| 久久久久亚洲AV无码观看| 香蕉久久夜色精品国产小说| 国产精品久久午夜夜伦鲁鲁| 伊人久久大香线蕉综合Av| 亚洲国产成人精品女人久久久| 国产成人精品久久一区二区三区av| AAA级久久久精品无码片| 精产国品久久一二三产区区别| 久久久久久久久久久免费精品| 国产精品久久久久aaaa| 国产精品禁18久久久夂久| 久久精品国产第一区二区三区| 久久精品人成免费| 91精品国产高清久久久久久io | 久久婷婷五月综合色高清| 国内精品久久久久影院薰衣草| 久久人人爽人人人人片av| 久久91精品国产91久| 久久精品亚洲中文字幕无码麻豆| 亚洲综合伊人久久综合| 99久久久精品| 国产精品欧美久久久久天天影视|