Announcement

Collapse
No announcement yet.

EGRID32PRO DLL Question

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

    EGRID32PRO DLL Question

    This question is for Elias, but if anyone has the answer it would be welcome

    I am testing the latest version of EGRID32PRO prior to purchasing. Looked at DEMO Dialogs, all fine.

    EGRID32 though does not appear to work when the parent Dialog is in a DLL, my application uses a Console EXE and PBWIN DLL.

    When a DIALOG shows that has an EGRID CONTROL the GRID does not appear, checking the %WM_NOTIFY callback for any reason for failure, i notice I get no callbacks whatsoever.

    Put one of DEMO samples into a test DLL and get the same result.

    Any suggestion.

    Regards

    #2
    Looks like it's possible. Look at the help file under RegisterEGPClass

    I think you need to pass your DLL name into the RegisterEGPClass function.


    Originally posted by Fraser Portwood View Post
    This question is for Elias, but if anyone has the answer it would be welcome

    I am testing the latest version of EGRID32PRO prior to purchasing. Looked at DEMO Dialogs, all fine.

    EGRID32 though does not appear to work when the parent Dialog is in a DLL, my application uses a Console EXE and PBWIN DLL.

    When a DIALOG shows that has an EGRID CONTROL the GRID does not appear, checking the %WM_NOTIFY callback for any reason for failure, i notice I get no callbacks whatsoever.

    Put one of DEMO samples into a test DLL and get the same result.

    Any suggestion.

    Regards

    Comment


      #3
      RegisterEGPClass() usage.

      Brian is right. The help topic for RegisterEGPClass() has all the details about this and you can download the help file even before you purchase Egrid32.

      The syntax for registering Egrid32 for use in a DLL is like this:
      Code:
      RegisterEGPClass("EG32|EGCELLS|MYDLLBETWEENEGRIDANDMAINEXE.DLL")
      Then you just create the control using "EG32" as class name, or whatever name you specify.

      Notice that you dont need to explicitly call RegisterEGPClass() when you create the form in your main exe, as Egrid32 does it manually.

      Please let me know if i can answer any other questions about Egrid32.

      Comment


        #4
        EGRID32 Question

        Many Thanks for your help.

        My Next question, can you disable a cell same as you do with the colum, I tried to make a CELL readonly unfortunaly it crashed because the cell contained a check box, which as I can remeber you cannot make readonly.

        Best Regards
        Fraser

        Comment


          #5
          Yes, you can do it.

          Egrid32 has 2 ways of configuring cells: By column and by cell. When you do it by column, you save time by setting a default configuration for cells, which will be displayed on any defined cells in the column.

          But if you want to customize the cell individually, you can use the command EG_SETSPECIALSETTINGS and all the effects will be enabled.

          For example, if you use EG_SETREADONLY, the setting will remain dormant until you switch from column settings to cell settings with EG_SETSPECIALSETTINGS.

          About the crash, i dont see any reason it would crash to set a checkbox as readonly, actually, i have done this several times. If you show me your code i will probably be able to show you what is the problem.

          If you have more questions, don't hesitate to ask.

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎