Re: Tabs in FXTextField

Jeroen van der Zijp <[email protected]> Sun, 7 Apr 2024 09:51:34 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization FOX Toolkit
Message-ID <20240407095134.68df2418@wunderland>
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


-- 
+----------------------------------------------------------------------------+
| Copyright (C) 14:00 11/25/2023 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+