[Gambas-user] TextEditor ShowPreview problem

Bruce Steers bsteers4 at gmail.com
Wed Dec 6 22:14:40 CET 2023


On Wed, 6 Dec 2023, 19:40 Benoît Minisini, <benoit.minisini at gambas-basic.org>
wrote:

> Le 06/12/2023 à 13:19, Bruce Steers a écrit :
> > 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?
> >
> > Respects
> > BruceS
> >
>
> I can't reproduce. Both buttons work as expected...
>

Then hovering over the preview bar on the newly filled editor to the right
shows the preview popup correctly?

Odd it does not in mine.

Respects
BruceS

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231206/913a4913/attachment-0001.htm>


More information about the User mailing list