wxWidgets wxRichTextCtrl formatting and cursor position issue on macOS

90 views
Skip to first unread message

David

unread,
Jul 14, 2020, 4:53:28 PM7/14/20
to wx-users
Hello,

I'm a wxPython user, and was referred here by that community for an issue I'm having with wxWidgets 3.1.3.

On macOS, I see two issues with the wxRichTextCtrl.  First, paragraphs with a different first line left indent are not being aligned the same way on macOS as on Windows.  Specifically, second and later lines are not being given the correct left indent value on macOS.

Also on macOS, if there is a tab character in a paragraph with different first line left indent, cursor positioning on click and selection of text do not work correctly on the first line following the tab character.  The positioning is incorrect.  Making a correct selection in such text is challenging.

I've attached a few lines of code you can insert into the wxWidgets richtextctrl sample program starting at line 1012 that demonstrate these problems.  I've reported this as issue #18797 in the issue tracker.

Thanks in advance for looking at this issue.

David Woods
wxWidgets RichTextCtrl issues.txt

Igor Korot

unread,
Jul 14, 2020, 9:10:39 PM7/14/20
to wx-u...@googlegroups.com
Hi,

Do you need to use wxRTC?
 Cant you try wxTextCtrl with wxTE_RIXH2 style?

Asking because wxRTC is not getting too much attention right now...

Thank you.


David Woods

--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
 
To unsubscribe, send email to wx-users+u...@googlegroups.com
or visit http://groups.google.com/group/wx-users
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wx-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/53268bc9-35ad-4e97-b6b7-2d15932d2d54o%40googlegroups.com.

Transana

unread,
Jul 15, 2020, 11:08:39 AM7/15/20
to wx-u...@googlegroups.com

Hello,

I'm a wxPython user, and was referred here by that community for an issue I'm having with wxWidgets 3.1.3.

On macOS, I see two issues with the wxRichTextCtrl.  First, paragraphs with a different first line left indent are not being aligned the same way on macOS as on Windows.  Specifically, second and later lines are not being given the correct left indent value on macOS.

Also on macOS, if there is a tab character in a paragraph with different first line left indent, cursor positioning on click and selection of text do not work correctly on the first line following the tab character.  The positioning is incorrect.  Making a correct selection in such text is challenging.

I've attached a few lines of code you can insert into the wxWidgets richtextctrl sample program starting at line 1012 that demonstrate these problems.  I've reported this as issue #18797 in the issue tracker.

Thanks in advance for looking at this issue.

Do you need to use wxRTC?
 Cant you try wxTextCtrl with wxTE_RIXH2 style?

Asking because wxRTC is not getting too much attention right now...

Thank you.


Hi Igor,

It's really not practical for me to switch to the TextCtrl.  I have a decade of legacy code based on the RichTextCtrl, including RTF and DOCx parsers.  wxTE_RICH2 is Windows only, according to the documentation, and I need cross-platform support.  (The original post specified that this was a macOS issue.)  I save the native RichText XML in the database for complex documents.  I also require embedded images, which I don't think wxTextCtrl supports.

I'm really sorry to hear that wxRTC is being abandoned.  It's really a pretty amazing widget.

David

Vadim Zeitlin

unread,
Jul 15, 2020, 11:35:33 AM7/15/20
to wx-u...@googlegroups.com
On Wed, 15 Jul 2020 10:08:34 -0500 Transana wrote:

T> I'm really sorry to hear that wxRTC is being abandoned.  It's really a
T> pretty amazing widget.

It's not being abandoned, but it only ever had one author (Julian), who is
not active any longer and there doesn't seem to be anybody else motivated
enough to take over maintaining it. Personally I just don't have the
bandwidth for it, but would be glad to apply any patches/PRs to it.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages