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

Developed or developing a new product in PureBasic? Tell the world about it.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Im trying to simulate some kind of 'nodle' that shows and hide some cells when select the nodle.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

No, afraid that will not be possible except by moving cell contents around - which I think would be quite ugly!

You must remember that an egrid is, at the end of the day, a Windows List View control which has been beaten into submission. As such there are limits to what can be done.

What I gained by leveraging the functionality of the list view, I have perhaps lost in that I cannot offer functionality which is physically not capable with a list view etc.
I may look like a mule, but I'm not a complete ass.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Your grid is excellent!!

I hope you open some forum at your site for questiosn, tips, etc.

(Did you speak spanish?)

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

Post by srod »

ricardo wrote:Your grid is excellent!!

I hope you open some forum at your site for questiosn, tips, etc.

(Did you speak spanish?)

Thanks!!
That's not a bad idea.

Unfortunately I have no experience with php or MySQL etc. and I don't think that my account on the server I'm using allows server side scripting anyhow.
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 »

I've just finished adding a command button type cell (still got some testing to do though!) and am wondering if I should add a toggle button type cell? After all we already have check boxes which kind of act like a toggle button.

Any thoughts anyone?

If there's a need then I'll add them.
I may look like a mule, but I'm not a complete ass.
rw
User
User
Posts: 27
Joined: Mon Sep 04, 2006 9:55 pm

Post by rw »

Hi!

Thank you for the quick answer!

Where must i use "egrid_SelectCell" if i want to postion the cell box after Drag and Drop or Column Click event?

Please give me a clue.

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

Post by srod »

It is easy enough to reposition the selection box after a column click; just place a #egrid_SelectCell() command in the #egrid_HeaderItemClick message handler in your CellCallBack function.

After a column drag - uhm, not possible at the moment because I haven't coded any message. I did do originally but removed it for some reason! :? I don't think that I deemed it necessary. Problems with Windows 98 required that I remove the selection box every time a column is resized or dragged by the user, and whilst I could put it back, it just seemed that it was something users could live without. I'll think some more on it when I've completed the work on command buttons.

Bear in mind though that, for example, the column with index 2 still has column index 2 even after dragging it elsewhere. This is a Windows thing which makes a lot of sense when you delve into the inner workings. For this you might need the commands egrid_GetColumnOrderArray() and egrid_SetColumnOrderArray(). See the history.txt file for details.
I may look like a mule, but I'm not a complete ass.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I have just paid via paypal link on your site for this library :) Can't wait for the reg stuff needed.

I have absolutely no problem with purchasing libraries from fellow PB developers. If I believe the library is benefitial to me, then I purchase the bugger.

One nagging question through. When you do finally release this bugger in DLL format for non-pb languages. Will the pb library format still be available to PB users, with all updates? Or will we be required to use the DLL format?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Hi Shannara,

thanks for the purchase. Reg key is on its way.

Beta 4 is almost ready (the last beta version I hope!) with some new features.

The Purebasic version will always come first and will be the main release version as this is the language I am most comfortable with. The dll version will require a few changes where the passing of strings is concerned. Of course all registered users will have access to all versions of the library and in the case of PB, can choose to use the static lib or dll as desired.

:)
I may look like a mule, but I'm not a complete ass.
rw
User
User
Posts: 27
Joined: Mon Sep 04, 2006 9:55 pm

Post by rw »

Hi srod!

About setting the selection box position:

I use the lib with purelvsort an want to change the position after the
sorting process is done. Here i have to hide it in #egrid_HeaderItemClick callback.

Perhaps we need a message #egrid_AfterSort and #egrid_AfterDragDrop
here do do the position change.

Hmm, i dont want the lib to be over complicated (to many meassage) but ...

What do you think?


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

Post by srod »

**REMOVED**
Last edited by srod on Wed Oct 18, 2006 11:56 am, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

Post by zikitrake »

:D I finish also buying my license
PB 6.21 beta, PureVision User
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Got it - thanks. :)

A reg key is on its way.

Should be a major update released by tonight. Still some work to do in the meantime!
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 »

rw wrote:Hi srod!

About setting the selection box position:

I use the lib with purelvsort an want to change the position after the
sorting process is done. Here i have to hide it in #egrid_HeaderItemClick callback.

Perhaps we need a message #egrid_AfterSort and #egrid_AfterDragDrop
here do do the position change.

Hmm, i dont want the lib to be over complicated (to many meassage) but ...

What do you think?


rw
I've finished work on what will be the last beta now, and I will address this issue of yours before releasing.

egrid now hides the selection box automatically when a sort is instigated, so you no longer need to worry about that. In fact this now means that you can trap #egrid_LosingFocus and determine which cell was last selected etc. (although this wont help if you then sort the rows!)

I will add a message which is fired whenever a column resize or a column drag is completed so that you can reinstate the selection box if required. Myself and Gnozal are currently at work integratng egrid and PURELVSort a little more and it should then be possible to fire the same message when the sort is completed. This should cover all of your requirements in this respect.

Incidentally, it is obviously not possible for egrid to reinstate the selection box after a sort as it has no way of knowing where the old selected cell has ended up! It will be possible, however, for the developer to use the new forthcoming message to then search the grid looking for the old cell. You just need some kind of bookmark (which you could store as text within an image cell, for example, which will not affect the image. This is covered in the Tricks and Tips section of the help manual).
I may look like a mule, but I'm not a complete ass.
rw
User
User
Posts: 27
Joined: Mon Sep 04, 2006 9:55 pm

Post by rw »

Hi srod!

I´m waiiiiting for the next beta ...

By the way, i try to color a row if a egrid-chexbox is checked / unchecked
(like your demo 3). To color the whole row, i must force a redraw of the
egrid. Where must i do this?

Bye

rw
Post Reply