Possible Selection Problem
Possible Selection Problem
I have received a report that there may be a error when text is selected in TScaleRichView. Although I have not witnessed this problem, I was told that, in some computers, when the user clicks on a word, a text segment is selected (usually up to the end of the word, from the start of the paragraph, sometimes begging in a word of the previous paragraph). I have received screen captures, in case they may be of any help.
Edit: Trying to find out what may be causing this problem, I noticed the right-clicking on a misspelled word to bring up a list of suggestion is not working properly - at first the list is empy, and in the wrong position. I am using TScaleRichView 2.4.1 and TRichView 11.1.1 - I have made some changes in RVUni.pas, in order to avoid some kinds of word breaks.
Edit: Trying to find out what may be causing this problem, I noticed the right-clicking on a misspelled word to bring up a list of suggestion is not working properly - at first the list is empy, and in the wrong position. I am using TScaleRichView 2.4.1 and TRichView 11.1.1 - I have made some changes in RVUni.pas, in order to avoid some kinds of word breaks.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I cannot reproduce the problem with live spelling menu.
Some previous versions of SRichViewEdit had problems with popup menu (it was displayed before moving the caret to the point of right click, not after), but in the last version it was fixed.
Please give the step by step instructions how to reproduce.
Some previous versions of SRichViewEdit had problems with popup menu (it was displayed before moving the caret to the point of right click, not after), but in the last version it was fixed.
Please give the step by step instructions how to reproduce.
As the problem seemed to have something to do with the position of the TRichViewEdit component that was linked to the TScaleRichView, I tried to use an internal TRichViewEdit. The problem is that now I cannot move the cursor clicking on the text.
Edit: I cannot scroll or select using the mouse either.
Edit: When I try to set rvoTagsArePChars to true, it retains the value false. (The same goes for ShowSpecialCharacters, etc).
Edit: I cannot scroll or select using the mouse either.
Edit: When I try to set rvoTagsArePChars to true, it retains the value false. (The same goes for ShowSpecialCharacters, etc).
Last edited by palmeira on Tue Oct 27, 2009 3:14 pm, edited 3 times in total.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Do not use external RichViewEdit for displaying or editing documents. The position of everything is wrong in it. In the newer version, it will be even worse, it will be totally unusable for displaying.
External RichViewEdit can be used (hidden)
- for assigning properties at design time
- for displaying the same document in two SRichViewEdits (in future, currently not tested).
Yes, it is possible using external RVStyle and internal RichViewEdit. For example, tutorial demos work in this way.
External RichViewEdit can be used (hidden)
- for assigning properties at design time
- for displaying the same document in two SRichViewEdits (in future, currently not tested).
Yes, it is possible using external RVStyle and internal RichViewEdit. For example, tutorial demos work in this way.
I was not using external RichViewEdit for displaying or editing documents. In any case, now I am trying to use an internal RichViewEdit, and have add several additional problems (see posts above).
Last edited by palmeira on Tue Oct 27, 2009 7:42 pm, edited 1 time in total.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
The files have been sent. I simply changed the ActionTest demo, so that TScaleRichView uses the internal TRichView. Try to position the text cursor using the mouse - for me, it does not work.
Last edited by palmeira on Tue Oct 27, 2009 7:43 pm, edited 2 times in total.
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Not received (if you sent to richview at gmaildotcom or svt at trichviewdotcom).
If your e-mail contained exe in attachment (even zipped), please remove it; exe files are rejected automatically.
BTW, ActionTest already uses internal RichViewEdit. If you changed it for using external RichViewEdit, ScaleRichView will be ok, but this external RichViewEdit will be unusable for editing or displaying documents, as I explained before
If your e-mail contained exe in attachment (even zipped), please remove it; exe files are rejected automatically.
BTW, ActionTest already uses internal RichViewEdit. If you changed it for using external RichViewEdit, ScaleRichView will be ok, but this external RichViewEdit will be unusable for editing or displaying documents, as I explained before
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17555
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Your demo contains RichViewEdit1: TRichViewEdit, but it is not used in any way.
The problems with your demo is in empty Options (RVOptions in TSRichViewEdit), RVFOptions, RTFOptions.
Why did you remove all options from these properties?
Specifically, mouse is not working because you excluded rvoAllowSelection from RVOptions.
Clipboard copy command will not work too because you excluded all rvoAutoCopy* options from RVOptions.
Empty RVFOptions may lead to creation of document that cannot be opened later (because it does not contain text and paragraph styles).
Please restore these properties to values default for TSRichViewEdit and change them only if it's really necessary.
The problems with your demo is in empty Options (RVOptions in TSRichViewEdit), RVFOptions, RTFOptions.
Why did you remove all options from these properties?
Specifically, mouse is not working because you excluded rvoAllowSelection from RVOptions.
Clipboard copy command will not work too because you excluded all rvoAutoCopy* options from RVOptions.
Empty RVFOptions may lead to creation of document that cannot be opened later (because it does not contain text and paragraph styles).
Please restore these properties to values default for TSRichViewEdit and change them only if it's really necessary.
Thanks for the diagnostic. Just for the record, I have not removed these properties. Perhaps they were cleared when I removed the link to the external TRichViewEdit.
Edit: I have just checked and, in my machine, all the options of TSRichViewEdit are cleared when the property ExternalRV is cleared. As far as I have been able to test, after removing the external TRichViewEdit and setting most options to the default values, everything is working correctly.
Edit: I have just checked and, in my machine, all the options of TSRichViewEdit are cleared when the property ExternalRV is cleared. As far as I have been able to test, after removing the external TRichViewEdit and setting most options to the default values, everything is working correctly.