如何控制動態產生的PopupMenu Item |
答題得分者是:anpino
|
GGL
資深會員 發表:104 回覆:600 積分:335 註冊:2006-11-05 發送簡訊給我 |
TStrings *List=new TStringList; ADOConnection1->GetTableNames(List); for(int i=0;i為了替我的程式動態產生PopupMenu裡面的一個item弄了很久,想不到還有個更大的難題... 請問一下,這樣動態產生出來的Item要如何控制他的Click()事件?我查了一下文章,但是查到的是delphi的,看不怎麼懂,而且好像也有點不一樣,請知道的人幫幫我吧謝謝了 |
anpino
版主 發表:31 回覆:477 積分:231 註冊:2003-01-02 發送簡訊給我 |
引言:TStrings *List=new TStringList; ADOConnection1->GetTableNames(List); for(int i=0;i為了替我的程式動態產生PopupMenu裡面的一個item弄了很久,想不到還有個更大的難題... 請問一下,這樣動態產生出來的Item要如何控制他的Click()事件?我查了一下文章,但是查到的是delphi的,看不怎麼懂,而且好像也有點不一樣,請知道的人幫幫我吧謝謝了 >>< face="Verdana, Arial, Helvetica"> GGL 您好: bcb 的 help 裡都有範例呀~~ 貼出如下: |
axsoft
版主 發表:681 回覆:1056 積分:969 註冊:2002-03-13 發送簡訊給我 |
GGL您好: 我補充一個MenuItem的作法:D
請參考下面的範例試試,跟你要的PopupMenuItem很類似:
如何動態產生MenuItem Unit1.cpp //--------------------------------------------------------------------------- #include /*生活是一種藝術,用心生活享受生活*/發表人 - axsoft 於 2004/07/02 10:28:33 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |