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

            亚洲精品乱码久久久久久中文字幕| 久久亚洲精品无码AV红樱桃| 91精品国产91久久久久久青草| 久久精品一区二区| 人妻精品久久久久中文字幕| 亚洲精品乱码久久久久久蜜桃图片| 久久精品国产亚洲AV无码娇色| 精品人妻伦一二三区久久| 亚洲精品国产美女久久久| 99久久无码一区人妻| 一本色道久久综合狠狠躁| 亚洲国产精品久久久久久| 99久久国产精品免费一区二区| 99久久精品国产一区二区三区| 伊人久久大香线蕉精品不卡 | 国内精品久久久久久久亚洲| 国产美女亚洲精品久久久综合| 精品久久久久久无码中文野结衣| 蜜臀久久99精品久久久久久小说| 久久亚洲国产成人精品无码区| 精品久久香蕉国产线看观看亚洲| 狠狠色综合网站久久久久久久高清| 国内精品久久久久久久久| 国产精品久久自在自线观看| 亚洲欧美伊人久久综合一区二区| 怡红院日本一道日本久久 | 69SEX久久精品国产麻豆| 免费无码国产欧美久久18| 久久九九久精品国产| 青青青青久久精品国产 | 97热久久免费频精品99| 午夜精品久久久久久中宇| 久久久久亚洲av成人网人人软件| 精品久久久久久国产免费了| 久久久国产精品福利免费 | 国产精品美女久久久| 精品熟女少妇a∨免费久久| 国产精品久久毛片完整版| 久久久久中文字幕| 理论片午午伦夜理片久久| 一级a性色生活片久久无|