Re: Tabs in FXTextField
Enno Rehling <[email protected]> Sun, 21 Apr 2024 13:40:50 +0200
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <[email protected]> |
I accidentally only replied to Jeroen earlier, so here's my question again, to the whole list: In this case, the way the tabs got into this field was via copy & paste. Is there a good way to catch that and remove the tabs? Enno. On 4/7/2024 4:51 PM, Jeroen van der Zijp wrote: > On Sat, 6 Apr 2024 19:33:42 +0200 > Enno Rehling <[email protected]> wrote: > >> I have a FXTextField in my application, and when I insert text into it that >> starts one or more leading tab characters, the rendering of the text goes >> haywire: >> [image: fox_text.png] >> The text that it's trying to display is "<tab><tab>Lorem ipsum dolor sit >> amet, consectetur adipiscing elit" - notice the white space at the end >> followed by another t, and the weird artifacts in "adipiscing" that make >> the word unreadable. >> This artifacting gets word when I move the text cursor backwards through >> the text: > > Interesting. The reason I don't think I've seen this is because > there's no way to enter a tab into FXTextField. Or any control character, > for that matter. So text drawing in FXTextField has no "substitute" characters > to render the way FXText does. > > Maybe this is something that should be fixed, or at very least, protected against. > > > -- JVZ > >