自定義StringProperty屬性編輯器的問題。 |
尚未結案
|
Leway
一般會員 發表:43 回覆:71 積分:22 註冊:2003-07-29 發送簡訊給我 |
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);======================================= 為學日益,為道日損,損之又損,以致於無。為無為,而無不為。 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |