全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:2390
推到 Plurk!
推到 Facebook!

請問有關Form介面的問題??

尚未結案
shing187
一般會員


發表:45
回覆:63
積分:21
註冊:2003-01-15

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-04-18 13:22:47 IP:211.78.xxx.xxx 未訂閱
在BCB中,每個Form一定都有左上角的 關閉視窗,最大化,最小化三個圖示, 請問如果我可以在Form上不顯示這幾個圖示嗎?? 該怎麼作?? 謝謝.....
axsoft
版主


發表:681
回覆:1056
積分:969
註冊:2002-03-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-04-18 13:52:35 IP:61.218.xxx.xxx 未訂閱
引言: 在BCB中,每個Form一定都有左上角的 關閉視窗,最大化,最小化三個圖示, 請問如果我可以在Form上不顯示這幾個圖示嗎?? 該怎麼作?? 謝謝.....
Shing187您好:
    TCustomForm::BorderIcons
=========================================================
Specifies which icons appear on the title bar of the form.    enum TBorderIcon = { biSystemMenu, biMinimize, biMaximize, biHelp };
typedef Set TBorderIcons;
__property TBorderIcons BorderIcons = {read=FBorderIcons, write=SetBorderIcons, stored=IsForm, default
=7}    Description    Use BorderIcons to get or set the icons that appear on the title bar of the form. BorderIcons can include any of the following TBorderIcons values:    Value        Meaning    biSystemMenu        The form has a Control menu (also known as a System menu).
biMinimize        The form has a Minimize button
biMaximize        The form has a Maximize button
biHelp        If BorderStyle is bsDialog or biMinimize and biMaximize are excluded, a question mark appears in the form's title bar and when clicked, the cursor changes to crHelp; otherwise,no question mark appears.    Note:        Certain combinations of the BorderIcons and BorderStyle properties are mutually exclusive. For example, BorderIcons biMax, biMin with BorderStyle of bsDialog are mutually exclusive.
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  TBorderIcons tempBI = BorderIcons;

  tempBI >> biMaximize;
  BorderIcons = tempBI; //Maximize Button
  
  tempBI >> biMinimize; 
  BorderIcons = tempBI; //Minimize Buttom
  
  tempBI >> biSystemMenu; 
  BorderIcons = tempBI; //system Menu Button    }
1.以上您想關閉哪一個Button就去執行Maximize Button/Minimize Buttom/system Menu Button其中一個!Form的Caption都會存在的 2.如果您連Form的Caption都關閉只要
   
  Form1->BorderStyle=bsNone; 
即可 聯盟----Visita網站http://www.vista.org.tw ---[ 發問前請先找找舊文章 ]--- 發表人 - axsoft 於 2003/04/18 14:19:34
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-04-18 13:52:43 IP:140.135.xxx.xxx 未訂閱
shing187您好:  是右上角嗎??   將BorderStyle的屬性改成bsNone即可    順心 <>~我也是在學習的階段,所以請您多多見諒與指教~ 發表人 -
系統時間:2024-04-27 6:05:44
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!