ZeeGrid has been made by David Hillard and is completely free.
The DDL and the C header (ZeeGrid.h) are available on his web site :
http://www.kycsepp.com (http://www.kycsepp.com)
For those of you that would like to test ZeeGrid with PowerBASIC and/or FireFly you will find below ZeeGrid.inc (my translation of the ZeeGrid.h); I hope there is no error.
I will try to create a .ctl file in order to have it fully integrated within FireFly.
Regards,
Jean-Pierre
PS: the ZeeGrid.inc has been updating; thanks to Jose.
Thanks for letting us know and for your .inc file, Jean-Pierre.
Too bad there is not (yet) a complete documentation of all the Messages/Commands.
Kind regards
Eddy
Sounds very cool indeed. If someone has a few screenshots of this in action it would be very nice indeed if one can have a visual idea of what this looks like!
People creating cool controls for both Powerbasic and Firefly are great to have around for those of us who cant make them ourselves!
The translation of the ZGNOTIFYSTRUCT structure is incorrect. It must be:
' // Size = 28 bytes
Type ZGNOTIFYSTRUCT DWORD
ZGHeader As NMHDR
ZGControl As Byte
ZGShift As Byte
ZGAlt As Byte
ZGvKey As Long
End Type
Thank you Jose.
I've just uploaded a corrected version of ZeeGrid.inc
Regards,
Jean-Pierre
Quote from: Eddy Van Esch on April 04, 2016, 06:54:52 AM
Thanks for letting us know and for your .inc file, Jean-Pierre.
Too bad there is not (yet) a complete documentation of all the Messages/Commands.
Kind regards
Eddy
Eddy, for your information David Hillard has just published complete documentation about ZeeGrid's messages and notifications.
http://www.kycsepp.com/ZeeGrid_Docs/ZeeGrid_index.html
Quote from: Petrus Vorster on April 04, 2016, 07:35:16 AM
Sounds very cool indeed. If someone has a few screenshots of this in action it would be very nice indeed if one can have a visual idea of what this looks like!
People creating cool controls for both Powerbasic and Firefly are great to have around for those of us who cant make them ourselves!
Petrus, for your information I've translated into PowerBASIC DDT code a C demo that David Hillard sent me.
The PowerBASIC DDT code is here:
http://forum.powerbasic.com/forum/user-to-user-discussions/third-party-addons/29100-zeegrid-any-experience?p=747001#post747001
(http://forum.powerbasic.com/forum/user-to-user-discussions/third-party-addons/29100-zeegrid-any-experience?p=747001#post747001)
I will prepare a PowerBASIC SDK demo as well as a FireFly demo
Thanks Jean-Pierre,
I am going to work on a FreeBasic version as well. Nice to have another option for Grid controls. Maybe this grid will allow me not to have to finish the one that I started to create.
But apparently it's only 32-bit, isn't it?
Yes, it may very well be only 32-bit. It appears that Jean-Pierre has been in contact with the author. I wonder if the author will also compile the source for 64-bit.
Attached is a simple FreeBasic FireFly project showing a demo of the grid.
@Paul
Thank you for the demo with FreeBASIC
@Jose, @Paul
I've just sent an email to David Hillard asking him if he can compile a 64 bits version of ZeeGrid.DLL.
@Paul,
I saw this line of code in the FreeBASIC demo:
SendMessage hWndControl, ZGM_SETCELLTEXT, 1, Cast(LPARAM, @("First" & Chr(13) & "Column"))
How do you translate this line of code in PowerBASIC (my question is on the Cast operator) ?
> How do you translate this line of code in PowerBASIC (my question is on the Cast operator) ?
You can't. You have to fill a variable and pass the address of the string text (VARPTR for ASCIIZ, STRPTR for STRING)
Sorry, but I'm not going to use it. I have made a test and isn't adequate for High DPI applications.
lol! Well, I guess I will have to continue writing the grid after all. :)
Quote from: Jose Roca on April 17, 2016, 07:50:16 PM
> How do you translate this line of code in PowerBASIC (my question is on the Cast operator) ?
You can't. You have to fill a variable and pass the address of the string text (VARPTR for ASCIIZ, STRPTR for STRING)
Jose, thank you for your answer.
Quote from: Jose Roca on April 17, 2016, 08:00:16 PM
Sorry, but I'm not going to use it. I have made a test and isn't adequate for High DPI applications.
@Jose : Thank you for the test.
@Jose, @Paul
I will create another thread about yet another grid called Simple Grid (32 bits, 64 bits, Unicode and C source code available).
I've compiled the source with PellesC and created the 32 bits and 64 bits DLL (they are not available on CodeProject.com).
More info about Simple Grid : http://www.codeproject.com/Articles/681771/Simple-Grid-A-Win-message-based-grid-control
I hope Simple Grid will be High DPI aware.
Quote from: TechSupport on April 17, 2016, 12:55:28 PM
Attached is a simple FreeBasic FireFly project showing a demo of the grid.
Hi Paul,
David sent me a 64 bits version of the DLL for test; I swith your FireFly for FreeBASIC demo project to 64 bits.
I get this error message when I try to compile the project.
Any ideas how to solve it ?
Change
CAST(HMENU, IDC_FRMMAIN_ZEEGRID)
to
CAST(HMENU, CAST(LONG_PTR, IDC_FRMMAIN_ZEEGRID))
If you're going to use FreeBasic, learn how CAST works, because you're going to have to use it more often that any other FB function.
Quote from: Jose Roca on April 19, 2016, 11:34:50 AM
If you're goign to use FreeBasic, learn how CAST works, because you're going to have to use it more often that any other FB function.
@Jose, thank you for your help; it works now. And yes I will probably use more and more often FireFly for FreeBASIC. I will learn how to use CAST. I promise you.
@Paul, in this specific case the code in the FRMMAIN_ZEEGRID_INIT handler is generated directly by FireFly ... so I think that you should adapt this code (if possible) depending on the mode 32 bits and/or 64 bits. Is-it possible ?
Quote from: Jose Roca on April 17, 2016, 11:58:25 AM
But apparently it's only 32-bit, isn't it?
@Jose: As mentioned earlier, David sent me a 64 bits version of the DLL for test. I use it with FireFly for FreeBASIC 64 bits ... and so far so good.
Quote from: Jean-pierre Leroy on April 19, 2016, 12:51:37 PM
@Paul, in this specific case the code in the FRMMAIN_ZEEGRID_INIT handler is generated directly by FireFly ... so I think that you should adapt this code (if possible) depending on the mode 32 bits and/or 64 bits. Is-it possible ?
Thanks Jean-Pierre, I have now corrected the code generation for Custom Controls to eliminate this compile error. The code is the same for both 32 and 64 bits.
Quote from: Jose Roca on April 17, 2016, 11:58:25 AM
But apparently it's only 32-bit, isn't it?
David Hillard has officially released a 64 bits version of his grid ZeeGrid.
Announcement on his website:
http://www.kycsepp.com/ZeeGrid_Docs/zeegrid_build_37.html
One item I found missing is a combo box cell.
I used the old FarPoint Spread DLL (2.5/3.0) as my primary data input device with PowerBASIC back in my contracting days and most of the data forms I designed had at at least one static data item that the user selected via a cell combo box.
James
James,
I will take a look at FarPoint Spread DLL (2.5/3.0).
Regarding ZeeGrid it is possible to set a combo box at the cell level; there is a notification message called %ZGN_LOADCOMBO that allow to do that at cell level;you can have a look at the screenshot below.
Is it possible to do this with zeegrid?
This uses the row number col as a label to what is wanted in a one col grid.
James
Quote from: James Fuller on April 21, 2016, 08:54:12 AM
Is it possible to do this with zeegrid?
This uses the row number col as a label to what is wanted in a one col grid.
James
I will try to do this kind of Grid with ZeeGrid; at least it is possible with MLG (MyLittleGrid) :