Sign in Join

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

Mailing lists / lazarus / 2002-11

TLGrid: A Grid component for lazarus

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Jesus Reyes
to Jesus Reyes: Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but…
I noticed when I hit the resources button the first time that the editor appeared on the form, below the grid (actually beyond the size of the window - I didn't notice until I resized the window.)

I resized the window so debugging is easier and forgot the resources button and the checkbox, that was an early test

Show quoted text 7 lines
Later I started editing a cell and then scrolled the grid and the edit control stayed put while the grid moved behind it. Perhaps looking for a lostfocus event on the edit box and then save and close it?

:) I tested the editor only with [F2] -> Edit -> [Enter] or [ESC] or [arrows]. I will add code for lostfocus, thanks.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

andrew johnson
to Jesus Reyes: Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but…

yes.. its coming along nicely! Much faster then last time. I would say for now.. keep at it yourself, since I cannot guarantee how much time I can work on any of it, it will probably be faster if you just assume for now I won't be able to help. Try to make it as compatible as possible to

=D4 TCustomGrid, and then making TDrawGrid and TStringGrid(also

compatible with Delphi) will be easy. The reason I say keep as close to Delpi as possible with this is there are a lot of grids out there based on TCustomGrid. If we can make the Lazarus one as compatible as possible most of them should port fairly clean, so long as they don't do a lot of Win32 specific stuff. Which may also mean that we won't have to actually code a lot to get other extended grids(like DBGrid when available), because we can simply ask the permission of one of the other authors to use their grid, or simply use it if its already open-source.

Andrew

Jesus Reyes wrote 32 lines
Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but maybe it can be useful for somebody. See the included test to get started. WARNING: I haven't test it fully :) Currently it features: Cell[], ColCount, RowCount, FixedCols, FixedRows ColWidths[], RowHeights[], GridColor, RowSelect, base editor, Partially grid scrolling (You can scroll through scrollbars, but Selection can't reposition the bars yet), Keyboard Movement, user events, Etc. I'm looking forward to T(Draw,String)Grid compatibility, �can someone post current interface?. I know Andrew is working on components, if he likes it, feel free to take any part you like or all of it, just tell me so work dont get duplicated. Of course it lacks a lot of functionality and checks so be carefully and dont get surprised if something doesn't work. I haven't installed it on the IDE yet so I don't know how it does work. Jesus Reyes A. _________________________________________________________ Do You Yahoo!? La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
andrew johnson

Reply by email

Jesus Reyes

Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but maybe it can be useful for somebody. See the included test to get
started.

WARNING: I haven't test it fully :)

Currently it features:

Cell[], ColCount, RowCount, FixedCols, FixedRows
ColWidths[], RowHeights[], GridColor, RowSelect,
base editor, Partially grid scrolling (You can scroll through scrollbars, but Selection can't reposition the bars yet), Keyboard Movement, user events, Etc.

I'm looking forward to T(Draw,String)Grid
compatibility, �can someone post current interface?.

I know Andrew is working on components, if he likes it, feel free to take any part you like or all of it, just tell me so work dont get duplicated.

Of course it lacks a lot of functionality and checks so be carefully and dont get surprised if something doesn't work. I haven't installed it on the IDE yet so I don't know if it works.

Regards.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Jesus Reyes

Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but maybe it can be useful for somebody. See the included test to get
started.

WARNING: I haven't test it fully :)

Currently it features:

Cell[], ColCount, RowCount, FixedCols, FixedRows
ColWidths[], RowHeights[], GridColor, RowSelect,
base editor, Partially grid scrolling (You can scroll through scrollbars, but Selection can't reposition the bars yet), Keyboard Movement, user events, Etc.

I'm looking forward to T(Draw,String)Grid
compatibility, �can someone post current interface?.

I know Andrew is working on components, if he likes it, feel free to take any part you like or all of it, just tell me so work dont get duplicated.

Of course it lacks a lot of functionality and checks so be carefully and dont get surprised if something doesn't work. I haven't installed it on the IDE yet so I don't know how it does work.

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx -------------- next part --------------
A non-text attachment was scrubbed...
Name: gz00004.gz
Type: application/octet-stream
Size: 35210 bytes
Desc: "lazgrid.tar.gz"
Url : http://localhost/pipermail/lazarus/attachments/20021114/b01516bc/gz00004.obj

Reply by email

Tony Maro
to Jesus Reyes
Jesus Reyes wrote
Hi, Here is a grid component for lazarus, this is a preeliminar release, very alpha. but maybe it can be useful for somebody. See the included test to get started.

Very nice!

I noticed when I hit the resources button the first time that the editor appeared on the form, below the grid (actually beyond the size of the window - I didn't notice until I resized the window.) Later I started editing a cell and then scrolled the grid and the edit control stayed put while the grid moved behind it.

Perhaps looking for a lostfocus event on the edit box and then save and close it?

Also, the flags didn't seem to stay in sync with the data beside it after scrolling back and forth a few times.

I look forward to seeing more! I originally wanted to build the TCheckbook component on a TStringGrid, but since one didn't exist I had to write my own... unfortunately I never did add direct editing in it like you have here. Excellent start.

-Tony

Reply by email