EsGRID grid gadget 2.1. Don't post here!

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
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:Not sure what you mean? Do you mean that you wish to prevent the user selecting multiple cells by click and drag etc?
Yes, that's it. The problem is, that the cells are sometimes selected too, if I change the cell or row in the callback. Some user are wondering, if they can select multiple cells and it's not possible to something with it.
Now that's a flaming bug if ever I saw one! :wink:

I'll fix this first before returning to the question of preventing multiple cell selection through click and drag.
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 »

Phew, that was a tough one to track down! :)

The bug is fixed. Actually this fix has also fixed a very long standing bug which I've been scratching my head over for months! Of course I kept quiet about that one -it was very very obscure! :wink:

Right before rebuilding all the libraries, are you wishing for some mechanism by which you can prevet the user from highlighting multiple cells through click and drag? To be honest there is little point in doing this because the user can do no 'damage' anyhow if you use your CellCallback to prevent deletions etc.
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 »

6th September 2007.

Bug fix version.

Version 2.02 of egrid 5 fixes a couple of obscure bugs.

(Thanks Thorsten.)

Regards.
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 »

Update. EsGRID version 2.03.

Version 2.03 of EsGRID fixes a bug causing the vertical centering of cell text to be out by 4 pixels. It also adds a certain refinement to the use of context menus in selected cells.

Of course your next question will be : "What the hell is EsGRID and what happened to egrid ?" :)

I explain the reason behind the name change in the 'egrid' forums.

Regards.

Stephen.
I may look like a mule, but I'm not a complete ass.
Brice Manuel

Post by Brice Manuel »

Any chance of losing the horrid Paul Turley inspired logo/header image?

Thank you for the update :wink:
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Brice Manuel wrote:Any chance of losing the horrid Paul Turley inspired logo/header image?

Thank you for the update :wink:

You mean on the EsGRID website? I kinda like it, reminds me of my hippy days!

No wait, I was never a hippy... - or was I? Damn those drugs...

:)
I may look like a mule, but I'm not a complete ass.
Brice Manuel

Post by Brice Manuel »

I was teasing ya :wink:
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

I suppose EzGrid was unavailable too?

Thanks for the update and a great piece of software.

cheers
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

rsts wrote:I suppose EzGrid was unavailable too?

Thanks for the update and a great piece of software.

cheers
Now 'EzGrid' sounds too much like the Shamen's "Ebeneezer Goode" as in "e's are good, e's are good..." and that would probably get the Narcotics police after me! :wink:
I may look like a mule, but I'm not a complete ass.
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

formatted text

Post by michel »

Hello srod

Is there a way to write a text on the left, on the right or centred in a cell?

michel
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Hi, I'm not sure what you mean exactly?

You can justify text in string type and button type cells so that it is left justified, centered or right justified.

Is this what you are after?
I may look like a mule, but I'm not a complete ass.
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

formatted text

Post by michel »

Hello srod

That is exacly what I had in mind

michel
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Hi,

you need to handle the #egrid_FormatCell message in a CellCallback function.

Have a look at demo program 6 which uses centred text.
I may look like a mule, but I'm not a complete ass.
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Post by michel »

Hi,

Thank you for that tip.

michel
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Update. EsGRID version 2.04.

Version 2.04 of EsGRID fixes a bug which (in very obscure circumstances) caused EsGRID to be incompatible with my own EasyVENT library.

Took the opportunity to make the following ammendments whilst I was ripping EsGRID apart :

1) Altered and extended the #egrid_ContextMenu CellCallback message which now fires for header cells as well.

Though unlikely, this ammendment could break some existing code because of the interpretation of the 'row' and 'column' fields of the egridCellInfo structure. See the help manual for details (egrid_CreateCellCallback()).

2) Added a new CellCallback message; #egrid_LeftButtonDblclick.

Note that whilst this new message is added to complement the existing mouse notifications, it can fail to fire if cells of type #egrid_String or one of the combo box types are double-clicked. This is because the Windows control used to edit the cell can 'swallow' the second click.
Still, with care, it can undoubtedly be of some use.

The help manual has been updated.

Regards.

Stephen.
I may look like a mule, but I'm not a complete ass.
Post Reply