Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
TMemo and TChart
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: TMemo and TChart (Read 6149 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
Logged
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
Logged
theo
Global Moderator
Hero Member
Posts: 1673
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)
Logged
endik
New member
Posts: 29
TMemo and TChart
«
Reply #3 on:
May 03, 2007, 11:52:01 am »
thanks for update
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2626
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.
Logged
theo
Global Moderator
Hero Member
Posts: 1673
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?
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2626
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".
Logged
theo
Global Moderator
Hero Member
Posts: 1673
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.
Logged
Vincent Snijders
Administrator
Hero Member
Posts: 2626
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.
Logged
theo
Global Moderator
Hero Member
Posts: 1673
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
Logged
madepabloh
Jr. Member
Posts: 56
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!
Logged
Martin_fr
Hero Member
Posts: 1218
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)
Logged
madepabloh
Jr. Member
Posts: 56
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...
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
Options
»
TMemo and TChart
Recent
ListBox Filter
by
lainz
[
Today
at 05:00:07 am]
BGRAControls
by
lainz
[
Today
at 03:10:41 am]
FPCUp FPC/Lazarus SVN ins...
by
lainz
[
Today
at 03:09:38 am]
What is this Delphi Heade...
by
DirkS
[
Today
at 12:11:59 am]
Build of SQLite3 for WINC...
by
bambamns
[
Today
at 12:09:01 am]
Lazarus crashes after “Re...
by
and4977
[May 20, 2012, 11:26:31 pm]
Scrambled dragimage
by
Ocye
[May 20, 2012, 10:30:19 pm]
Transparency with Qt on D...
by
Ocye
[May 20, 2012, 08:14:43 pm]
DragImage adds as new win...
by
Ocye
[May 20, 2012, 08:05:24 pm]
TFrame size
by
iru
[May 20, 2012, 07:03:22 pm]