[Gambas-user] TextBox does not wrap the text

Gianluigi bagonergi at gmail.com
Thu Sep 12 19:14:04 CEST 2019


Hi guys,
happens at this time, when the "mi" is passed to the next line:
-------------------------------------------
 Nel mezzo del cammin di nostra vita mi
ritrovai per una selva oscura ché la
diritta via era smarrita
 Nel mezzo del camn di nostra vita
mi ritrovai per una selva oscura ché la
diritta via era smarrita
------------------------------------------
Is it a malfunction of Split() or my brain?
I'm afraid the second option is the right one :-(

Regards
Gianluigi

Il giorno gio 12 set 2019 alle ore 18:18 Gianluigi <bagonergi at gmail.com> ha
scritto:

> As Rolf had rightly said the TextLabel has embedded wrap, if its not
> working I think it's a bug.
>
> Can anyone tell me why my wrap correct (!?) and attached do eat the
> letters of a label (camn instead of cammin)?
>
> Regards
> Gianluigi
>
> Il giorno gio 12 set 2019 alle ore 17:30 Gianluigi <bagonergi at gmail.com>
> ha scritto:
>
>> Out of pity for me, can you simulate that I joked?
>> :-(
>> Thank you
>> Gianluigi
>>
>> Il giorno gio 12 set 2019 alle ore 16:45 Gianluigi <bagonergi at gmail.com>
>> ha scritto:
>>
>>> See if this feature can help you
>>>
>>> Regards
>>> Gianluigi
>>>
>>> Il giorno gio 12 set 2019 alle ore 16:35 Rolf-Werner Eilert <
>>> rwe-sse at osnanet.de> ha scritto:
>>>
>>>> Ok, after trying around for some while I found that TextLabel reacts to
>>>> a change in Height or Width.
>>>>
>>>> I wanted to adapt its measures to the text within and to the space left
>>>> from the position it was to appear until the right border of the
>>>> window.
>>>> What I intended was a little yellow help window with a help text which
>>>> should pop up at the writing position.
>>>>
>>>> When I fix it at the top of the window and let it be visible all the
>>>> time, never changing its size, it does wrap the text. But when I use
>>>> its
>>>> Font.Height and Font.Width properties to compute the number of
>>>> potential
>>>> lines and then change its measures appropriately, the text will not be
>>>> wrapped anymore.
>>>>
>>>> Strange, but I have found a workaround at least - just leaving it as it
>>>> is and leaving it visible.
>>>>
>>>> Regards
>>>> Rolf
>>>>
>>>>
>>>> Am 12.09.19 um 16:11 schrieb Bruce:
>>>> > Hmmm, never noticed that. Check AutoResize and Expand properties???
>>>> > Check parent Arrangement??? Otherwise no idea, sorry.
>>>> > b
>>>> >
>>>> > On 12/9/19 11:34 pm, Rolf-Werner Eilert wrote:
>>>> >> Sorry, I meant TextLabel...
>>>> >>
>>>> >>
>>>> >>
>>>> >> Am 12.09.19 um 15:57 schrieb Bruce:
>>>> >>> I might be a bit out of date, but I didn't think a TextBox could
>>>> wrap?
>>>> >>> b
>>>> >>>
>>>> >>> On 12/9/19 11:23 pm, Rolf-Werner Eilert wrote:
>>>> >>>> I have a TextBox with WordWrap set to "True" (its default).
>>>> >>>>
>>>> >>>> Yet it does not wrap the text, what might be the reason? There are
>>>> >>>> whitespaces in the text, so there shouldn't be a problem. And I
>>>> give
>>>> >>>> enough Height to show several lines.
>>>> >>>>
>>>> >>>> I am on an Ubuntu Mate but have included qt4 and qt4.ext (because
>>>> I
>>>> >>>> need some of the features there), might that be a reason?
>>>> >>>>
>>>> >>>> Regards
>>>> >>>> Rolf
>>>> >>>>
>>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> >>>> ]----
>>>> >>>
>>>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>> >>>
>>>> >>>
>>>> >>
>>>> >>
>>>> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>> >
>>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>> >
>>>> >
>>>>
>>>>
>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net
>>>> ]----
>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190912/ceebe0f0/attachment.html>


More information about the User mailing list