Recent

Author Topic: TMemo and TChart  (Read 12850 times)

endik

  • New Member
  • *
  • Posts: 29
TMemo and TChart
« on: April 27, 2007, 02:44:15 pm »
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

  • New Member
  • *
  • Posts: 29
TMemo and TChart
« Reply #1 on: May 03, 2007, 10:25:23 am »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
TMemo and TChart
« Reply #2 on: May 03, 2007, 11:46:26 am »
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

  • New Member
  • *
  • Posts: 29
TMemo and TChart
« Reply #3 on: May 03, 2007, 11:52:01 am »
thanks for update

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TMemo and TChart
« Reply #4 on: May 03, 2007, 11:55:39 am »
Reason is simple. There seemed to be a good workaround by setting the scrollbars to ssBoth.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
TMemo and TChart
« Reply #5 on: May 03, 2007, 12:01:44 pm »
But ssBoth doesn't seem to work either at runtime (0.9.22, GTK Linux, Wordwrap:=false) or am I missing something?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TMemo and TChart
« Reply #6 on: May 03, 2007, 12:08:20 pm »
You may be right, I don't run GTK Linux.

That is why I said "seemed".

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
TMemo and TChart
« Reply #7 on: May 03, 2007, 12:34:42 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
TMemo and TChart
« Reply #8 on: May 03, 2007, 12:40:59 pm »
Please add it to the bug report, I will change the target to 1.0.

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1932
TMemo and TChart
« Reply #9 on: May 03, 2007, 02:27:39 pm »
OK, thanks. I've added a remark to http://www.freepascal.org/mantis/view.php?id=862

madepabloh

  • Full Member
  • ***
  • Posts: 160
Re: TMemo and TChart
« Reply #10 on: September 02, 2011, 07:07:12 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11443
  • Debugger - SynEdit - and more
    • wiki
Re: TMemo and TChart
« Reply #11 on: September 02, 2011, 07:32:26 pm »
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

  • Full Member
  • ***
  • Posts: 160
Re: TMemo and TChart
« Reply #12 on: September 02, 2011, 11:15:07 pm »
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...


 

TinyPortal © 2005-2018