Re: Cursor and Caret
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Tue, 20 Nov 2007 11:39:22 -0600
Leo wrote:
I must request your help with some problems that I could not solve.
MacOS 10.4.10, RB 2007 4, FTC b14pv24
1. After saving an RTF doc as XML, similar to the save method in the
demo but with a few preparative actions, the cursor does not
reappear and it does not reappear on mouse click either (the
position is registered though and I can see something in a flash).
I can't tell what is happening from your description. As you said,
the demo application works fine, so the obvious question is, are
the "preparative actions" affecting the control?
2. After setting an insertion point by mouse click and next
programmatically moving the insertion point around, the caret
remains where it was initially and does not show where the insertion
point position has been moved to.
Try calling the FormattedText fullUpdate method after
setting the insertion point and then report to me what happens.
3. If the cursor is at the beginning of a paragraph, pressing the
left arrow key does not move it to the end of the previous paragraph.
This will be fixed in preview 26.
4. How can I avoid the vertical space (approximately the size of a
line height) when a new paragraph is made by the return key or
programmatically?
Every paragraph has a before and after space attribute. This is
the amount of space in inches added before and after the
paragraph. There is a method in FTDocument called
createDefaultParagraphStyle which you could override set the space
attributes. In preview 26 I have enhanced this capability by
adding an event called DefaultParagraphStyle in the FormattedText
class which you can fill in with a paragraph style that will be
used for the default setting.
5. I noticed that, after setting the insertion point and next,
performing some actions that have nothing to do with FTC, the
insertion point has frequently been repositioned at offset 0. Is
this the result of an action triggered by the timer and how can I
avoid this?
Not enough information here for me to make a determination. Most
likely it is a bug in the FTC if the insertion point is set to the
beginning when it is not supposed to be. It is not likely that the
insertion caret timer or the optimization thread would cause this
behavior. When preview 26 comes out, test against it and tell me
if the problem still exists.
FTC Website: www.truenorthsoftware.com/Realbasic/FormattedText.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- Follow-Ups:
- Re: Cursor and Caret
- From: Leo Van den Brande
- References:
- Cursor and Caret
- From: Leo Van den Brande
Other related posts:
- » Cursor and Caret
- » Re: Cursor and Caret
- » Re: Cursor and Caret
- » Re: Cursor and Caret
- » Re: Cursor and Caret
- » Re: Cursor and Caret
I must request your help with some problems that I could not solve. MacOS 10.4.10, RB 2007 4, FTC b14pv241. After saving an RTF doc as XML, similar to the save method in the demo but with a few preparative actions, the cursor does not reappear and it does not reappear on mouse click either (the position is registered though and I can see something in a flash).
- Re: Cursor and Caret
- From: Leo Van den Brande
- Cursor and Caret
- From: Leo Van den Brande