TMemo and TChart lazarus / 11-Options ---------------------------------------------------------------------- endik · 2007-04-27 12:44 Hi nice community, I have three variety problems: 1/ Tmemo scrolls up/down but does not horizontally (AutoScroll options, but the same if I set only horizontal), wordwrap is False of course, but it changes nothing, how to force Tmemo to do what it is supposed to do 2/ I have a loop: while ... do..., after each step is done Tmemo should display some text (just 2 lines) but it does not, instead it waiting untill whole loop is done and then display all stuff at once, this is not funny, though 3/ I also use TChart and displaying a plot every time a button is clicked, unfortunately if I click it few times and choose few different data to be displayed, all data appears on the plot, I would like to have only one at the time, so my data should be erased fro the TChart and plot again thanks for any advise one can provide Ciao ---------------------------------------------------------------------- endik · 2007-05-03 08:25 I have found solutions for two latter problems: 1/ still waiting for debugging 2/ just put                             Application.ProcessMessages; each time you want to see changes 3/ just put                        plot1.Series.Clear;           (plot1 is my name of plot) before adding new series ciao ---------------------------------------------------------------------- theo · 2007-05-03 09:46 1/ is an old bug afaik http://www.freepascal.org/mantis/view.php?id=862 I don't know why the bug is targetted for post 1.0 Can anybody explain? I think it would be important to have the components on the "Standard Tab" more or less bug-free for 1.0 (Gtk, Win32) ---------------------------------------------------------------------- endik · 2007-05-03 09:52 thanks for update ---------------------------------------------------------------------- Vincent Snijders · 2007-05-03 09:55 Reason is simple. There seemed to be a good workaround by setting the scrollbars to ssBoth. ---------------------------------------------------------------------- theo · 2007-05-03 10:01 But ssBoth doesn't seem to work either at runtime (0.9.22, GTK Linux, Wordwrap:=false) or am I missing something? ---------------------------------------------------------------------- Vincent Snijders · 2007-05-03 10:08 You may be right, I don't run GTK Linux. That is why I said "seemed". ---------------------------------------------------------------------- theo · 2007-05-03 10:34 OK, but on GTK it's a bit of a mess. 1: Setting ssBoth in Object Inspector behaves like ssAutoBoth. (horizontal never shows, vertical when needed). 2: Setting ssBoth in Code like: procedure TForm1.FormShow(Sender: TObject); begin   Memo1.WordWrap:=false;   Memo1.ScrollBars:=ssBoth; end; -> they are both shown, but the Horizontal SB doesn't seem to be linked to the content. No matter how long the line is, the Horz. Slider has always the same (full) length and is not scrollable. I can't see any workaround for scrolling long lines atm. ---------------------------------------------------------------------- Vincent Snijders · 2007-05-03 10:40 Please add it to the bug report, I will change the target to 1.0. ---------------------------------------------------------------------- theo · 2007-05-03 12:27 OK, thanks. I've added a remark to http://www.freepascal.org/mantis/view.php?id=862 ---------------------------------------------------------------------- madepabloh · 2011-09-02 17:07 It seems still not be solved this problem that i detected in the 0.9.31 version... Any idea about how to solve it in some way? Thanks! ---------------------------------------------------------------------- Martin_fr · 2011-09-02 17:32 I don't know about TMemo. But if you do not need wordwrap, and if you can live with a mono- spaced font => use TSynEdit. (It supports all of the the scrollbar modes) ---------------------------------------------------------------------- madepabloh · 2011-09-02 21:15 it could serve, but i need it could recognize lines jump. I tried but it write all the lines one next to the other, and it, consecuently, they are cutted...