[Gambas-user] TextEditor ShowPreview problem

Benoît Minisini benoit.minisini at gambas-basic.org
Wed Dec 6 20:39:49 CET 2023


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...

-- 
Benoît Minisini.



More information about the User mailing list