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

自定義StringProperty屬性編輯器的問題。

尚未結案
Leway
一般會員


發表:43
回覆:71
積分:22
註冊:2003-07-29

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-12-27 17:05:31 IP:218.80.xxx.xxx 未訂閱
 
  TtmCommandEditor=class(TStringProperty)
  public
    function GetAttributes:TPropertyAttributes;override;
    procedure Edit;override;
  end;    procedure TtmCommandEditor.Edit;
var
  S:string;
begin
  inherited;
  S:=GetValue;   //Get不到Value??   Why??
  FormViewKeyEditor:=TFormViewKeyEditor.Create(Application);
  FormViewKeyEditor.ShowModal;
  if FormViewKeyEditor.ModalResult=mrOK then
  begin
    SetValue(strViewKey);  //回寫不成功??  Why??
    Designer.Modified;
  end;
end;    function TtmCommandEditor.GetAttributes: TPropertyAttributes;
begin
  Result:=[paDialog];
end;    RegisterPropertyEditor(TypeInfo(string),TtmColumn,'Command',TtmCommandEditor);  
======================================= 為學日益,為道日損,損之又損,以致於無。為無為,而無不為。
系統時間:2024-06-29 22:38:48
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!