我有一個TcxScheduler
,我希望能夠在我點擊活動時獲得自定義字段的值。 捕獲dblclick事件非常簡單,但我無法獲取單擊的事件。如何爲TcxScheduler計劃事件創建(截取)編輯器?
1
A
回答
1
爲什麼不使用SchedulerBeforeEditing
procedure TFrmScheduler.SchedulerBeforeEditing(Sender: TcxCustomScheduler;
AEvent: TcxSchedulerControlEvent; AInplace: Boolean; var Allow: Boolean);
var
MyValue: Variant;
begin
inherited;
if not AInplace then
begin
try
if AEvent.Index = -1 then
begin
// do something like Add new event
end
else
begin
MyValue:=AEvent.GetCustomFieldValueByName('SomeField');
// do something
end;
finally
// ingore the edit
Allow:= False;
end;
end;
end;
相關問題
- 1. 如何爲iPhone創建XML編輯器?
- 2. 如何爲MAC創建XML編輯器?
- 3. 如何爲grails創建PDF編輯器
- 4. Kendo計劃程序事件在取消後消失編輯
- 5. Mysql事件計劃創建SQL錯誤
- 6. 爲scorm編輯器創建插件
- 7. 如何爲Eclipse創建自定義配置編輯器插件?
- 8. Codeigniter如何爲css/js/php創建類似wordpress編輯器的CMS編輯器
- 9. 如何從Wiris編輯器創建PDF?
- 10. 如何創建降價編輯器
- 11. 如何創建可編輯的微調器(選取器)?
- 12. Kendo計劃程序:防止編輯已完成的事件
- 13. Kendo計劃程序阻止編輯/銷燬某些事件
- 14. Contraint邏輯編程計劃
- 15. 如何用jQuery創建'編輯'/'取消編輯'框?
- 16. 如何在點擊事件上創建可編輯的輸入
- 17. Google Calendar API:如何創建「只讀」/不可編輯的事件?
- 18. 如何創建/編輯Manifest文件?
- 19. 如何創建編輯文本控件
- 20. 如何創建和編輯WiX文件?
- 21. 如何編輯計劃任務觸發器
- 22. 如何編輯用Aloha編輯器動態創建的dom?
- 23. 設計,如何創建一個編輯配置文件頁面
- 24. mxGraph編輯器 - 創建節點時觸發事件
- 25. 如何爲Windows事件查看器創建CRITICAL事件?
- 26. 如何查詢計劃進程(計時器事件)?
- 27. 計劃事件 - InitiationHandler
- 28. 如何攔截/編輯the_category?
- 29. 如何在TcxScheduler中更改事件的標題?
- 30. 創建Dijit>編輯器>插件
能否請您ellaborate?你有什麼困難?你如何看待這個事件的代碼?你如何設置自定義字段? – 2012-04-11 06:22:42
假設cxScheduler來自DevExpress,您可以更好地在他們的支持論壇上提問。 – 2012-04-11 06:23:54
@Marjan Venema:DevExpress也出現在Stackoverflow上(參見[DevExpress團隊](http://stackoverflow.com/users/380926/devexpress-team),上次活動2月8日9:26截至我的時間後)。 – menjaraz 2012-04-11 07:48:13