Announcement

Collapse
No announcement yet.

Zeegrid - Any experience?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Zeegrid - Any experience?

    Hi;

    Ran across zeegrid.com

    Anyone have experience with this control? If so,
    looking for some sample code.

    Having problems using sdk control (createwindow) with
    ddt pbmain.

    How does one do this? (can they coexist?).

    Thanks - Terence.

    ------------------

  • #2
    Having problems using sdk control (createwindow) with ddt pbmain.

    How does one do this? (can they coexist?).
    Sure they can coexist. But if you create a window or control with CreateWindow[Ex], you can't expect DDT commands to operate on that window or control.


    Comment


    • #3
      Originally posted by Michael Mattias:
      Sure they can coexist. But if you create a window or control with CreateWindow[Ex], you can't expect DDT commands to operate on that window or control.

      Thanks for response -

      Different tack - If I know the class name of the control in the
      dll, can I add it using DDT (like I would a BUTTON control, for
      example) and specify control callback as per DDT documentation?

      Sample code:

      Code:
      #COMPILE EXE
      #DIM ALL
      #INCLUDE "WIN32API.INC"
      #INCLUDE "ZeeGrid.inc"
      
      %hDlgMain_cmdRun = 100
      %hDlgMain_Grid1 = 150
      
      GLOBAL hDlgMain AS LONG
      GLOBAL hGridCtl AS DWORD
      
      '==============================================================================
      CALLBACK FUNCTION SHOWhDlgMainProc()
      	SELECT CASE CBMSG
      		CASE %WM_CREATE
      
      		hGridCtl = CreateWindowEx(%WS_EX_CLIENTEDGE, "zeegrid", "", _
      		%WS_CHILD OR %WS_VISIBLE, _
      		0, 0, 100, 100, _
      		hDlgMain, %hDlgMain_Grid1, getModuleHandle(BYVAL %NULL), BYVAL %NULL)
      
      		CASE %WM_COMMAND
      			SELECT CASE CBCTL
      			END SELECT
      	END SELECT
      END FUNCTION
      '==============================================================================
      FUNCTION PBMAIN () AS LONG
      
      	LOCAL hGrid AS DWORD
      	hGrid = LoadLibrary("ZeeGrid.dll")
      
      	DIALOG NEW 0, " Generic Process", , , 500, 350, %WS_POPUP OR %WS_BORDER OR %WS_DLGFRAME OR %WS_SYSMENU OR %WS_MINIMIZEBOX OR %WS_CLIPSIBLINGS OR %WS_VISIBLE _
      		OR %DS_MODALFRAME OR %DS_3DLOOK OR %DS_NOFAILCREATE OR %DS_SETFONT, %WS_EX_CONTROLPARENT OR %WS_EX_LEFT OR %WS_EX_LTRREADING OR %WS_EX_RIGHTSCROLLBAR, TO hDlgMain
      	CONTROL ADD BUTTON, hDlgMain, %hDlgMain_cmdRun, "&Run", 230, 330, 40, 13
      ?????	'---CONTROL ADD "zeegrid", hDlgMain, %hDlgMain_Grid1, "Grid1", 5, 5, 190, 160, %WS_CHILD OR %WS_VISIBLE, %WS_BORDER
      	DIALOG SHOW MODAL hDlgMain, CALL ShowhDlgMainProc
      
      	FreeLibrary(hGrid)
      
      END FUNCTION
      '==============================================================================
      ------------------

      Comment


      • #4
        Yes. There is no reason why it won't work. Note that you are using %WS_BORDER as an extended style (it is a normal style, extended styles are prefixed with WS_EX_)

        ------------------
        contact me
        kgpsoftware.com - Free and Commercial Software
        kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

        Comment


        • #5
          Originally posted by Kev Peel:
          Note that you are using %WS_BORDER as an extended style...
          Smack! (palm to head) - That resolved issue.

          Thanks to you both!

          Terence.

          ------------------

          Comment


          • #6
            "ZeeGrid.inc" ?
            Is it available?
            Thanks
            Eros

            ------------------
            mailto:[email protected][email protected]</A>
            www.thinbasic.com
            "If PowerBasic doesn't have the solution, then you've got the wrong problem."
            thinBasic programming language
            Win10 64bit - 8GB Ram - i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

            Comment


            • #7

              Chceking on the competence
              are there any screenshots?

              ------------------
              Egrid32 Grid Control - Form Designer for Egrid32 - Print Engine for Egrid32
              www.sweetheartgames.com - Visit the Forums! =)

              Comment


              • #8
                Originally posted by Eros Olmi:
                "ZeeGrid.inc" ?
                Is it available?
                Thanks
                Eros
                Hi Eros;

                As was probably painfully obvious from my previous posts in this
                thread, I am not used to including external controls into apps
                I make in PB. Generally (and probably to my detriment) I
                subscribe to the theory that if the only tool you have is a
                hammer, every problem looks like a nail.

                My hammer, generally, is PB DDT (plus ms common controls, etc.).

                Even using COM with MS word or excel or Project (which I have done
                on multiple occasions) makes my eyes glaze over (the whole
                variant translation thing seems cludged).

                This particular control, however struck me as having "the right
                idea", in that it is available to all sdk languages.

                I suck at translating INCLUDE files (hacked up an MySQL one) but
                this one isn't even a translation - there are no functions,
                it's just a "search-and-replace" between "define" and "%name".

                !!!!! HUGE DISCLAIMER !!!!!

                Guys - this is just some control I ran across on the internet
                whilst I was looking for something else. I have no vested
                interest in whether or not you even look at it. It probably
                sucks, I don't know.

                In the 2 hours I have spent messing around with it,
                I can put a grid on a form, add rows, blah, blah, blah....

                The point of my post was just to see whether or not anyone
                had any experience with the control (vendor).

                Seems to work - will do some test and post my results...

                Seeya - Terence.


                ------------------
                Code:
                #COMPILE EXE
                #DIM ALL
                #INCLUDE "WIN32API.INC"
                #INCLUDE "ZeeGrid.inc"  '--- SIMPLE TRANSLATION
                '---YOU CAN DOWNLOAD BOTH INC FILE AND DOCS FROM WWW.ZEEGRID.COM 
                %hDlgMain_Grid1 = 150
                GLOBAL hDlgMain AS LONG
                '==============================================================================
                FUNCTION PBMAIN () AS LONG
                
                	LOCAL hGrid AS DWORD
                	hGrid = LoadLibrary("ZeeGrid.dll")
                
                	DIALOG NEW 0, " Generic Process", , , 500, 350, %WS_POPUP OR %WS_BORDER OR %WS_DLGFRAME OR %WS_SYSMENU OR %WS_MINIMIZEBOX OR %WS_CLIPSIBLINGS OR %WS_VISIBLE _
                		OR %DS_MODALFRAME OR %DS_3DLOOK OR %DS_NOFAILCREATE OR %DS_SETFONT, %WS_EX_CONTROLPARENT OR %WS_EX_LEFT OR %WS_EX_LTRREADING OR %WS_EX_RIGHTSCROLLBAR, TO hDlgMain
                	CONTROL ADD "zeegrid", hDlgMain, %hDlgMain_Grid1, "My Freaking New Grid", 5, 5, 490, 175, %WS_CHILD OR %WS_VISIBLE OR %WS_BORDER
                
                	CONTROL SEND hDlgMain, %hDlgMain_Grid1, %ZGM_SHOWVSCROLL, 0, 0
                
                	LOCAL i AS LONG
                        '---ADD 100 EMPTY ROWS...
                	FOR i = 0 TO 100
                            CONTROL SEND hDlgMain, %hDlgMain_Grid1, %ZGM_APPENDROW, 0, 0
                	NEXT
                
                	DIALOG SHOW MODAL hDlgMain, CALL ShowhDlgMainProc
                
                	FreeLibrary(hGrid)
                
                END FUNCTION
                '==============================================================================


                [This message has been edited by Terence McDonnell (edited March 03, 2006).]

                Comment


                • #9
                  Sorry to have asked for the file. Just a snap to convert it.

                  Demo DLL is limited to 3 columns, too little to test it.
                  Anyhow, seems a good grid, worth to try and test.
                  Cost is not so low.

                  Eros


                  ------------------
                  mailto:[email protected][email protected]</A>
                  www.thinbasic.com
                  "If PowerBasic doesn't have the solution, then you've got the wrong problem."
                  thinBasic programming language
                  Win10 64bit - 8GB Ram - i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

                  Comment


                  • #10
                    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
                    Last edited by Jean-Pierre LEROY; 4 Apr 2016, 04:53 AM. Reason: Typo error.
                    Jean-Pierre LEROY

                    Comment


                    • #11
                      For those of you who would like to test ZeeGrid with PowerBASIC you will find below ZeeGrid.inc (my translation of the ZeeGrid.h).
                      Attached Files
                      Last edited by Jean-Pierre LEROY; 16 Apr 2016, 04:52 PM.
                      Jean-Pierre LEROY

                      Comment


                      • #12
                        Click image for larger version

Name:	Demo ZeeGrid.png
Views:	2
Size:	11.6 KB
ID:	747002


                        For those of you who would like to go futher, you will find below 2 complete PowerBASIC demos (one in DDT code and the other one in SDK code); this demo was written in C by David Hillard:

                        The code below creates a small grid and sets each cell to be editable by the user. When the user presses enter after editing, or clicks off the edited cell, ZeeGrid sends the ZGN_EDITCOMPLE message to the application. If the entered data is not a number, the cell is colored with black text on a yellow background. If it is number, it’s checked to see if the value is greater than or equal to 10 and less than or equal to 100. If it is in this range, the cell is colored with black text on a green background. If it is outside this range, it is colored with white text on a red background.
                        Attached Files
                        Last edited by Jean-Pierre LEROY; 17 Apr 2016, 05:08 PM. Reason: Add SDK version
                        Jean-Pierre LEROY

                        Comment


                        • #13
                          David Hillard has just published complete documentation about ZeeGrid's messages and notifications.

                          http://www.kycsepp.com/ZeeGrid_Docs/ZeeGrid_index.html


                          Jean-Pierre LEROY

                          Comment


                          • #14
                            Jean-Pierre,

                            Thanks for the translation to PB of the demo program. But I seem to have a problem.

                            On my current laptop, I have Windows 10 but only have PB Win v10.03 ( I must have copied an older PB directory .. my problem which I'll have to wait a week to fix).
                            I'm unable to see any of the column headings or row numbers. I've tried F8 to bring up the toolbar but none of those options will show
                            any of the headings. Are your screen shots from a PB-version or from the C-version? I've tried switching between the standard PB Includes and Jose's Includes
                            but can not see any difference.
                            Or can it be due to the difference between a window and a dialog?
                            Last edited by Paul D. Elliott; 17 Apr 2016, 10:14 AM. Reason: added last line regarding window or dialog

                            Comment


                            • #15
                              Originally posted by Paul D. Elliott View Post
                              Are your screen shots from a PB-version or from the C-version?
                              Paul, it is a screen shot from the PB version; I've no idea why you can't see the column headings or row numbers. Weird.
                              Jean-Pierre LEROY

                              Comment


                              • #16
                                Jean-Pierre.
                                Thanks for the links and demo. Now I have something else to play with.

                                Paul,
                                I'm running PB Win v 10.04 with José's includes, and the demo is working as expected on my Win 10 machine. I don't have 10.03 to try it with.

                                Just for fun, I compiled it with PB Win V 9.05 using standard PB includes. After changing STRINGZ to ASCIIZ, it works as expected.

                                ... .... . ... . . ... ... .... . .. ... .... .. ... .... .. .... ..

                                n6jah @ yahoo.com

                                Comment


                                • #17
                                  No headers build 37 on Win10 with PbWin 10.04
                                  headers show with build 36.

                                  James

                                  Comment


                                  • #18
                                    Ok got it. Need to add this line:
                                    SendMessage hgrid, %ZGM_SETCOLUMNHEADERHEIGHT,10,0

                                    James

                                    Comment


                                    • #19
                                      Well, my problem doesn't seem to be v10.03.

                                      Based on the screens from some other programs, it seems to be related to the high-definition monitor and related drivers in this laptop.
                                      I'll continue trying little changes ( such as font/colors ) in the demo. It'll be after the 7th of May before I can try testing on my older
                                      Windows 2000 desktop with a semi-standard video setup.

                                      Comment


                                      • #20
                                        I am confused by this statement in the license: "You may not publish, in any form, instructions, manuals, or tutorials on ZeeGrid usage."
                                        as the salmon fish is compelled to go back to it's birthplace to spawn, so comes a day when man is compelled to go back to it's source.. GOD

                                        Comment

                                        Working...
                                        X