[Gambas-user] TextEditor ShowPreview problem

Bruce Steers bsteers4 at gmail.com
Wed Dec 6 13:23:10 CET 2023


On Wed, 6 Dec 2023 at 12:19, Bruce Steers <bsteers4 at gmail.com> wrote:

> Attached is a simple test/demo of a problem i found.
>
> The project has 2 TextEditor controls
> TextEditor1 loads ~/.bash_history on start just as a test file.
>
> There are 2 buttons,  button 1 does this...
> TextEditor2.Text = TextEditor1.Text
>
> Button2 does this...
> TextEditor2.Text = ""
> TextEditor2.Insert(TextEditor1.Text)
> TextEditor2.Goto(0, 0)
>
> Press button1 to make TextEditor2.Text = TextEditor1.Text and the preview
> bar in texteditor2 just shows blank. (sometimes shows line[0])
>
> press button2 and the preview shows okay , and also if you then press
> button1 the preview remains to be okay.
>
> I tried TextEditor2.Reset and various other methods.
> Only thing i found to work is using Insert() instead.
> problem exists with gtk and qt
>
> Is it a bug or am i doing something wrong?
>

I wondered if possibly related to bug 2837
<https://gambaswiki.org/bugtracker/edit?object=BUG.2837&from=L21haW4-> that
also has to do with TextEditor.ShowPreview ?

Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231206/159c6838/attachment.htm>


More information about the User mailing list