I'm trying to create a custom item type for editing date. As example i look ComboItem demo in RichView demos.
The problem is that when i add my item in TSRichViewEdit it doesn't work - it never enters in the overridden Focusing method.
When i modify ComboItem demo - replacing one of comboboxes with my item - it works.
Am i missing some property or something else in Scale RichView or using custom items is different in RichView and TSRichViewEdit
I'm using trial version of TRichView components. I need to check that it works for me before buying the components.
Thanks
Custom Addin and TSRichViewEdit
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
There are 3 problems
1) TComboBox does not work properly in ScaleRichView. This problem can be solved by using TSRVComboBox from SRVControls
2) Items can be "focused" only in TRichView, not in TRichViewEdit or TSRichViewEdit. This problem can be solved by processing TSRichViewEdit.OnCaretMove to show/hide a combobox.
3) The main problem: ScaleRichView expects that controls belong only to TRVControlItemInfo item type (or inherited). Controls belonging to other item types are not displayed. It requires changes in ScaleRichView source code to fix this problem. Unfortunately, we are currently busy to completing new features and preparing to upcoming release of Delphi XE2, so we cannot do this work right now
1) TComboBox does not work properly in ScaleRichView. This problem can be solved by using TSRVComboBox from SRVControls
2) Items can be "focused" only in TRichView, not in TRichViewEdit or TSRichViewEdit. This problem can be solved by processing TSRichViewEdit.OnCaretMove to show/hide a combobox.
3) The main problem: ScaleRichView expects that controls belong only to TRVControlItemInfo item type (or inherited). Controls belonging to other item types are not displayed. It requires changes in ScaleRichView source code to fix this problem. Unfortunately, we are currently busy to completing new features and preparing to upcoming release of Delphi XE2, so we cannot do this work right now