[Gambas-user] Text-Wrapping
Brian G
brian at westwoodsvcs.com
Wed Nov 11 20:20:34 CET 2020
Here is a simple text wrap, I had.
Thank You
Brian G
----- Original Message -----
From: "Benoît Minisini" <g4mba5 at gmail.com>
To: "Gambas mailing list" <user at lists.gambas-basic.org>
Sent: Wednesday, November 11, 2020 11:13:31 AM
Subject: Re: [Gambas-user] Text-Wrapping
Le 11/11/2020 à 19:32, Bruce a écrit :
>
> Unfortunately, my "perfext code is in python and consists of a single
> call to textwrap.wrap() See here for more info
> https://docs.python.org/3/library/textwrap.html#textwrap.wrap
>
> I was merely trying to point out that it isn't as simple as it looks.
>
>>> I had understood, obviously badly as I usually do, that each line of
>>> text
>>> should contain the maximum possible number of characters indicated (with
> That is a fair and alternate interpretation of the question and one I
> should have put in my original post!
>
> Perhaps having a look at how the IDE wraps code might be an idea? It
> seems to do quite well with (silly) things like:
> Dim MyName As String = "Mr. Michael Sean O'Reilly-Dogherty III (Jnr)"
>
> cheers
> b
>
The text editor wrapping algorithm is for proportional fonts and is
based on pixels, not on characters.
--
Benoît Minisini
----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestTextWrap-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 12950 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201111/2729dfd9/attachment-0001.bin>
More information about the User
mailing list