Page 7 of 25
Posted: Mon Oct 09, 2006 2:06 pm
by Dare
Yes, sorry.
Typing too fast with one brain cell focussed on something else and the other one is - hang on, where is the other one?
I've lost it!
Ah well.
eGrid is good, that much is certain.

Posted: Mon Oct 09, 2006 2:11 pm
by srod
Dare wrote:Yes, sorry.
Typing too fast with one brain cell focussed on something else and the other one is - hang on, where is the other one?
I've lost it!
Ah well.
eGrid is
VERY good, that much is certain.

You missed a word!

Posted: Mon Oct 09, 2006 2:19 pm
by Dare
LOL!

Posted: Mon Oct 09, 2006 3:19 pm
by Thorsten1867
srod wrote:That will break quite a lot of code! I think Thorsten in particular will scream blue murder!
You're right! I think, I 've the highscore using eGrid-Gadgets (over 16) in my program.
Posted: Mon Oct 09, 2006 3:26 pm
by srod
Thorsten1867 wrote:srod wrote:That will break quite a lot of code! I think Thorsten in particular will scream blue murder!
You're right! I think, I 've the highscore using eGrid-Gadgets (over 16) in my program.
Phew, sounds like egrid central!
Posted: Tue Oct 10, 2006 7:24 am
by magicjo
Hi srod:
I would make a request for your new egrid version : the possibility to split the text on more lines for a single cell, not just adding the ellipsis to the end of the single line like now.
I've modified your old egrid adding this possibility(adding a constant on textjustification field of cellinfo and passing in such case the value DT_WORKBREAK to the drawtext_ function, as you see is very complicated

) .
Thanks in advance.
Posted: Tue Oct 10, 2006 8:42 am
by Progi1984
Have you planned an export to XLS ? or ODS ?
Why not XML (file or string) ? With an export, people could save in files they want !
Posted: Tue Oct 10, 2006 11:40 am
by srod
Progi1984 wrote:Have you planned an export to XLS ? or ODS ?
Why not XML (file or string) ? With an export, people could save in files they want !
In short, no!
I don't even know what ODS is, but, to be honest, whilst I've considered exporting to XML, I decided that this is probably easiest left to the developer. Coding your own routine should be straight forward. Of course, if you offered to have your routine incorporated into egrid, then I wouldn't say no!

Posted: Tue Oct 10, 2006 11:44 am
by srod
magicjo wrote:Hi srod:
I would make a request for your new egrid version : the possibility to split the text on more lines for a single cell, not just adding the ellipsis to the end of the single line like now.
I've modified your old egrid adding this possibility(adding a constant on textjustification field of cellinfo and passing in such case the value DT_WORKBREAK to the drawtext_ function, as you see is very complicated

) .
Thanks in advance.
How did that affect editing the cell?
I have certainly considered this on a number of occasions, but just couldn't convince myself that many people would want it. I know its a simple addition to the DrawText_() function.
***EDIT***
Having made the necessary changes - yea it looks kind of cool to wrap the text instead! The only problem is that you have to set a row height which is effectively a multiple of the average font height else you get a few pixels of an incomplete row showing. This will be a problem if using multiple fonts etc.
Question: what's the best way of enabling this? Either in the CellCallback or as an egrid creation flag?
Posted: Tue Oct 10, 2006 1:33 pm
by magicjo
@srod:
Don't worry for the height of rows, the responsability will be of the developer set a proper row height at grid creation.
Posted: Tue Oct 10, 2006 2:00 pm
by Progi1984
ODS is OpenDocumentSheet, the concurrent of M$ Excel in OpenOffice.
ODS is an XML zipped !
Posted: Tue Oct 10, 2006 2:25 pm
by Thorsten1867
Progi1984 wrote:Have you planned an export to XLS ? or ODS ?
Why not XML (file or string) ? With an export, people could save in files they want !
Where is the problem to do it for yourself?
A lot of my egrids have as result a xml file. Use MSXML3 (PBOSL).
(I combined EGrid in my programm with XML, SQLite and INI-files)
Posted: Tue Oct 10, 2006 2:29 pm
by Thorsten1867
Progi1984 wrote:ODS is OpenDocumentSheet, the concurrent of M$ Excel in OpenOffice. ODS is an XML zipped !
ODS would be really nice, but this should be enough for a own libary.
Posted: Tue Oct 10, 2006 10:29 pm
by srod
BETA 3 released.
Please see the
history page for a list of changes.
http://www.purecoder.net/egrid.htm
Posted: Wed Oct 11, 2006 1:16 am
by mskuma
Testing beta 3. I've noticed that double-clicking the column edge will resize the width to the max width of the cell's content. When running demo2 with the unicode lib, I typed in some text into the first text column and double-clicked the column edge, and it increased the width but not quite enough because the ... chars were visible (these replaced the last 3 chars of the cell content). I think this behaviour is not quite right (i.e. shouldn't see any ... for this auto-resize situation).