PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: ZeeGrid a new and free grid available for PowerBASIC and Firefly users  (Read 9432 times)

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...

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

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.
« Last Edit: April 04, 2016, 08:49:20 AM by Jean-pierre Leroy »
Logged

Eddy Van Esch

  • Senior Member
  • ***
  • Posts: 246
  • FF3 User
    • DevOTechS

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
Logged
Eddy

Petrus Vorster

  • Senior Member
  • ***
  • Posts: 440

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!
Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3216

The translation of the ZGNOTIFYSTRUCT structure is incorrect. It must be:

Code: [Select]
' // Size = 28 bytes
Type ZGNOTIFYSTRUCT DWORD
ZGHeader  As NMHDR
ZGControl As Byte
ZGShift   As Byte
ZGAlt     As Byte
ZGvKey    As Long
End Type

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...

Thank you Jose.

I've just uploaded a corrected version of ZeeGrid.inc

Regards,
Jean-Pierre
Logged

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...

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
Logged

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...

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

I will prepare a PowerBASIC SDK demo as well as a FireFly demo
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8925
  • Windows 10
    • PlanetSquires Software

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Josť Roca

  • Guru Member
  • *****
  • Posts: 3216

But apparently it's only 32-bit, isn't it?

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8925
  • Windows 10
    • PlanetSquires Software

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.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8925
  • Windows 10
    • PlanetSquires Software
Re: ZeeGrid a new and free grid available for PowerBASIC and Firefly users
« Reply #10 on: April 17, 2016, 12:25:28 PM »

Attached is a simple FreeBasic FireFly project showing a demo of the grid.
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...
Re: ZeeGrid a new and free grid available for PowerBASIC and Firefly users
« Reply #11 on: April 17, 2016, 04:56:51 PM »

@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.
Logged

Jean-pierre Leroy

  • Senior Member
  • ***
  • Posts: 469
  • expect nothing, be prepared for everything ...
Re: ZeeGrid a new and free grid available for PowerBASIC and Firefly users
« Reply #12 on: April 17, 2016, 07:08:59 PM »

@Paul,

I saw this line of code in the FreeBASIC demo:

Code: [Select]
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) ?
Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3216
Re: ZeeGrid a new and free grid available for PowerBASIC and Firefly users
« Reply #13 on: April 17, 2016, 07:20: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)

Josť Roca

  • Guru Member
  • *****
  • Posts: 3216
Re: ZeeGrid a new and free grid available for PowerBASIC and Firefly users
« Reply #14 on: April 17, 2016, 07:30:16 PM »

Sorry, but I'm not going to use it. I have made a test and isn't adequate for High DPI applications.
Pages: [1] 2