egrid 4 grid gadget - (static PB library version.)

Developed or developing a new product in PureBasic? Tell the world about it.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post 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! :shock:


Ah well.


eGrid is good, that much is certain. :)
Dare2 cut down to size
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :shock:


Ah well.


eGrid is VERY good, that much is certain. :)

You missed a word! :D
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

LOL! :lol:
Dare2 cut down to size
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post 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.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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!
I may look like a mule, but I'm not a complete ass.
magicjo
User
User
Posts: 61
Joined: Sun May 07, 2006 10:43 am
Location: Italy

Post 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 :D ) .

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
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post 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 !
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :wink:
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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 :D ) .

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.
magicjo
User
User
Posts: 61
Joined: Sun May 07, 2006 10:43 am
Location: Italy

Post 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.
PB Registered User, Egrid Registered User
Win7 x64 Ultimate, 4,00 Gb Mem, Ati Radeon HD4600 Series, Realtek High Definition Audio Integrated
User avatar
Progi1984
Addict
Addict
Posts: 806
Joined: Fri Feb 25, 2005 1:01 am
Location: France > Rennes
Contact:

Post by Progi1984 »

ODS is OpenDocumentSheet, the concurrent of M$ Excel in OpenOffice.

ODS is an XML zipped !
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post 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)
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post 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.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

BETA 3 released.

Please see the history page for a list of changes.

http://www.purecoder.net/egrid.htm
I may look like a mule, but I'm not a complete ass.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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).
Post Reply