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.
PB Registered User, Egrid Registered User
Win7 x64 Ultimate, 4,00 Gb Mem, Ati Radeon HD4600 Series, Realtek High Definition Audio Integrated
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!
I may look like a mule, but I'm not a complete ass.
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?
I may look like a mule, but I'm not a complete ass.
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)
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).