Suggesting a feature
Suggesting a feature
I would like to ask the wxWidgets developers to develop a single-line rich text edit control. Any idea what the best to go about this?
Soon to be world famous
Re: Suggesting a feature
You can create a ticket on wxTrac or ask in the wx-users mailing group but TBH, IMO the chances for this being implemented are very low.
AFAIK, the original author of wxRichTextCtrl is not very active and since its code is quite complex, other people are very keen on modifying it.
I have no experience with wxRichTextCtrl so I assume you tried to make it work as a single line control but failed?
Can't you use just wxTextCtrl with wxTE_RICH2 and wxTextAttr? But I am not sure this would work in a single line mode either.
AFAIK, the original author of wxRichTextCtrl is not very active and since its code is quite complex, other people are very keen on modifying it.
I have no experience with wxRichTextCtrl so I assume you tried to make it work as a single line control but failed?
Can't you use just wxTextCtrl with wxTE_RICH2 and wxTextAttr? But I am not sure this would work in a single line mode either.
Re: Suggesting a feature
I can't use wxTextCtrl with the wxTE_RICH2 flag since it isn't supported on the other platforms. I need the solution to work on all platforms.
I'll try entering a wxTrac issue. Otherwise I'll have no choice but to modify RichTextCtrl myself.
I'll try entering a wxTrac issue. Otherwise I'll have no choice but to modify RichTextCtrl myself.
Soon to be world famous
Re: Suggesting a feature
What exactly do you want to achieve? If you just want a single line wxRichTextCtrl you could try to catch the wxEVT_CHAR event and consume all "return" presses.
Use the source, Luke!
Re: Suggesting a feature
While wxTE_RICH(2) is for MSW only and required there to support formatting, are you sure wxTextCtrl on the other platforms does not support formatting (although it is not same as wxRichTextCtrl)? I think a single-line text control may need just font and color formatting, not paragraph formatting, tables, embedded pictures etc.
I am MSW only but I think it is supposed to work everywhere. You can easily test it with the bundled Text sample. I tested in a VM with Linux Mint:
Re: Suggesting a feature
Hi,
Let's start from the beginning - what feature of wxRTC you are looking for?
And are you sure you want the single line control? What is wrong with multiline?
Thank you.
Let's start from the beginning - what feature of wxRTC you are looking for?
And are you sure you want the single line control? What is wrong with multiline?
Thank you.
Re: Suggesting a feature
I'm trying to build something similar to the Outlook Express email address To and From fields.
I'm currently using a multi-line RichTextCtrl but I find it doesn't really look like a single line textcontrol, it looks more like a 1,5 line text control.
I'm currently using a multi-line RichTextCtrl but I find it doesn't really look like a single line textcontrol, it looks more like a 1,5 line text control.
Soon to be world famous
Re: Suggesting a feature
Hi,
Are you using sizers?
Can you post some code?
Thank you.
Are you using sizers?
Can you post some code?
Thank you.
Re: Suggesting a feature
I need to underline the recipients that have been found in the address book. Outlook Express works the same way.
Soon to be world famous
Re: Suggesting a feature
Hi,
And SetFont() doesn't work for you in a regular text control? Or even the one with wxTE_RICH2?
Thank you.
And SetFont() doesn't work for you in a regular text control? Or even the one with wxTE_RICH2?
Thank you.