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

ValueListEditor中TitleCaptions的問題

答題得分者是:RaynorPao
chance
一般會員


發表:19
回覆:9
積分:5
註冊:2003-08-18

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-12-14 17:24:14 IP:211.78.xxx.xxx 未訂閱
各位大大好!小弟有個問題想要請要大家~~ 那就是在ValueListEditor中有個屬性叫TitleCaptions,為什麼我在TitleCaptions中加入了四個欄位,但是為什麼只能秀出兩個欄位呢~~ 小弟試著改ValueListEditor中的其他屬性,但是仍然做不到上述的功能 是不是有什麼屬性小弟沒有改到呢~ 謝謝各位大大的指教!
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-12-14 21:42:32 IP:61.221.xxx.xxx 未訂閱
引言: 各位大大好!小弟有個問題想要請要大家~~ 那就是在ValueListEditor中有個屬性叫TitleCaptions,為什麼我在TitleCaptions中加入了四個欄位,但是為什麼只能秀出兩個欄位呢~~ 小弟試著改ValueListEditor中的其他屬性,但是仍然做不到上述的功能 是不是有什麼屬性小弟沒有改到呢~ 謝謝各位大大的指教!
chance 你好:
(1)根據 BCB Help 中的說明,屬性 TitleCaptions 頂多只能夠有兩個字串,多
   餘的會被忽略
TValueListEditor::TitleCaptions
Specifies the captions that label the columns of the value list 
editor.    __propertyTStrings TitleCaptions = {read=FTitleCaptions, write
=SetTitleCaptions, stored=TitleCaptionsStored};    Description    Use TitleCaptions to provide titles for the columns of the value list 
editor. TitleCaptions is a TStrings descendant that contains two 
strings: the first string labels the name (key) column, and the 
second string labels the value column. If TitleCaptions contains less 
than two strings, missing captions are treated as empty strings. If 
TitleCaptions contains more than two strings, all strings except the 
first two are ignored.    Note:
TitleCaptions is only used when the DisplayOptions property includes 
doColumnTitles.
(2)如果你想要有多個 Column 的話,建議使用 TStringGrid 元件,有關此元件
   的使用方法,善用本站的搜尋功能,就可以找到很多這方面的相關文章
    < src="http://delphi.ktop.com.tw/loadfile.php?TOPICID=10003806&CC=223734"> -- Enjoy Researching & Developing --
        
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
系統時間:2024-04-27 3:08:23
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!