Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-05

Lasarus TChart second Y-axis patch

7 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LION

At first, Hello everybody ^)

'Ask' said tha mail list is the best way to show up the modification. So i'm writing here.

As of the second YAxis being needed for my app I modified TChart modules to handle this feature.

Attached patch is based on 20190 revision of TChart and modifies tagraph.pas, taseries.pas and tatypes.pas.

The way this modification was built gives the ability to add even more axis in future.

The key moments are:
- Basic coordinates transformation routines are moved to be handled by axis itself
- transformation routines in TChart module were modified but they are totally compatible with any code written for 20190 revision
- Zooming is moved to TChartAxis too
- BackColour added

Incompatibles are:
- extent removed because max and min borders are handled by axis

As of 20190 revision totally changed some routines this patch will not cause any bigger troubles...

Foxel the lion (Kupreitchik Andrey)

http://foxel.quickfox.ru

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-nd Y Axis.zip
Type: application/zip
Size: 9754 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20090526/d60b3e4c/attachment.zip>

Reply by email

Felipe Monteiro de Carvalho
to LION

Hello,

Was this patch applied? Maybe it was forgotten, actually the best way to send patches is in the bug tracker so that they aren't forgotten.

Who maintains the Charts package?

thanks,

Felipe Monteiro de Carvalho

Reply by email

Héctor Fiandor Rosario
to Alexander Klenin

Dear friends:

I have implemented an application (a game) with 25 problems to be solved thru StringGrids. It has a form with the name of the player, another with the seleccion of one of the 25 games, and the form where the game develops.

When the player wants to start another game, the application have a button to go back the the player?s name and so on. When we go from the 1 to de 25 no problems.

But when he try to select a game with a lower number of row-columns, then it display a message saying that Col=0 and Row=new last, is out of range.

if somebody can help me, I will appreciate very much.

Thanks in advance,

yours truly,

Ing. H?ctor F. Fiandor

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/

Reply by email

Graeme Geldenhuys
to Héctor Fiandor Rosario

2010/5/2 H?ctor Fiandor Rosario :

But when he try to select a game with a lower number of row-columns, then it display a message saying that Col=0 and Row=new last, is out of range. if somebody can help me, I will appreciate very much.

TStringGrid is zero-based. Aren't you maybe referencing a cell via RowCount (which is 1-based). Without some code (event handler causing the problem), it's hard to help.

Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/

Reply by email

hector fiandor
to Graeme Geldenhuys

Dear Mr. Graemeg:

I have solved the problems.
I discover that the record where was copied the information in file was overlapped with the new information and if the new matrix to be copied was smaller than the prior, then others members remain and was the cause of problems.

I implemented a procedure to clean the record prior to copy the new one and problem solved.

thanks in advance

If you wants, I can send to you the apllication for your childrens

yours truly,

Ing. H?ctor F. Fiandor Rosario

Este mensaje le ha llegado mediante el servicio de correo electronico que ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema Nacional de Salud. La persona que envia este correo asume el compromiso de usar el servicio a tales fines y cumplir con las regulaciones establecidas Infomed: http://www.sld.cu/

Reply by email