Page 6 of 23

Posted: Thu Jul 05, 2007 8:53 pm
by srod
Fixed.

Give me 30 mins to rebuild all the libs + dll's and upload (using a dialup which is SO S L O W !)

:)

Posted: Thu Jul 05, 2007 8:55 pm
by Thorsten1867
Thanks a lot!
I will test it tomorow. It's to late in Germany today. :wink:

Posted: Thu Jul 05, 2007 9:20 pm
by srod
5th July 2007.

Bug fix version.

Version 1.07 of egrid 5 fixes another bug resulting from the last round of major changes. An application using multiple egrids would function incorrectly and possibly crash.

Posted: Fri Jul 06, 2007 1:38 pm
by Thorsten1867
I tried to download the new version, but I get 'egrid5_v1.06_PB4.1staticsetup.exe'

Posted: Fri Jul 06, 2007 1:43 pm
by gnozal
Thorsten1867 wrote:I tried to download the new version, but I get 'egrid5_v1.06_PB4.1staticsetup.exe'
Worked here (downloaded it this morning).
Direct link : http://www.purecoder.net/egrid5_v1.07_P ... csetup.exe

Posted: Fri Jul 06, 2007 1:49 pm
by Thorsten1867
Now the link is correct!
All my eGrids now working perfectly. :D :D :D

Posted: Fri Jul 06, 2007 2:54 pm
by srod
You must have had the old egrid download page cached in your proxy server etc.

Anyhow, I'm glad the fix is holding up! :)

Posted: Tue Jul 17, 2007 6:37 pm
by srod
Update. egrid 5 version 2.01.

Version 2.01 of egrid 5 (Purebasic 4.1 version only or the dll version of egrid 5) adds the facility of gradient painting individual cells as the following screenshot shows:

Image

Gradient painting individual cells is obviously more flexible than only offering this facility for entire rows etc. but, consequently, you do have to select the colours carefully. The various cell types do blend very well with the gradient painting.

Gradient painting of cells is achieved very simply through a CellCallback. No hassle! There is an additional demo program (demo 8 ) to show you how. The help manual has also been updated etc.

In terms of installation, you are definitely advised to completely remove any previous version first. This is because there is a new resident file.

See the egrid site for the download etc.

NOTE that because gradient paint is offered at the cell level, allowing the user to reorder the columns of such an egrid by click and drag etc. would destroy the gradient painting! :) Therefore if an egrid utilises gradient paint then it should either refuse column drags or keep a very close eye on the column order array etc.

Also, and to answer this question before it's asked :wink: ; I tried gradient painting header cells and it looked awful! I thus removed this option.

Posted: Mon Aug 06, 2007 8:00 am
by mueckerich
There is something strange happen to egrid. :shock: Last week i was able to use EGrid I compiled my code and all things gone ok. But since saturday i always get the message that i have to register to use the complete Egrid, that's strange because i didn't change anything. Even a easy code would'nt work anymore. So i'm complete lost i don't know how to get this working.

Here the code for testing, its one of your examples a little shortened. The registration infos are marked out. If you need more information or the code of the project i work on currently please PM me.

Code: Select all

;******************************************************************************************
;'egrid5' editable grid control. By Stephen Rodriguez.
;******************************************************************************************
;                                 DEMONSTRATION PROGRAM 7.

egrid_Register("MichaelHolderried**##########**", "################################")

Procedure.l MyCellCallBack(egrid, uMsg, *cellinfo.egridCellInfo)
  Protected result
  ProcedureReturn result
EndProcedure

If OpenWindow(0,0,0,640,300,"egrid4 demo 7.",#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_Maximize|#PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
  egrid_CreateGrid(1, WindowWidth(0)/2-175, 150, 350, 300,24, #egrid_AlwaysShowSelection, #egrid_CustomHeader | #egrid_ResizeColumnsTrue)
  egrid_CreateCellCallback(1, @MyCellCallBack())
  egrid_AddColumn(1,0,"",30)
  egrid_AddColumn(1,1,"First name",120)
  egrid_AddColumn(1,2,"Second name",120)
  egrid_AddColumn(1,3,"Gender",60)
  egrid_AddColumn(1,4,"VR",30)
  egrid_AddRows(1,-1, 100) ;Add 100 rows.
  For b=0 To 99                         
    egrid_SetCellText(1,0,b,"FALSE")
    egrid_SetCellText(1,1,b,"Bob")
    egrid_SetCellText(1,2,b,"Smith")
  Next
  egrid_SetHeaderHeight(1,40)
  egrid_SetOption(1, #egrid_SelectionBorderWidth, 2)
  SetActiveGadget(1)
  Repeat
    EventID = WaitWindowEvent()
    Select EventID
      Case #PB_Event_Gadget
        Select EventGadget() 
        EndSelect
    EndSelect
  Until EventID = #PB_Event_CloseWindow
EndIf
End

Posted: Mon Aug 06, 2007 8:21 am
by ts-soft
No problem here, have you changed to unicode?

Posted: Mon Aug 06, 2007 9:25 am
by srod
Sorry Michael,

the first registration I send out is always a temporary one and expires after 10 days. My reasons for doing this are buried within one of the egrid threads; but basically it follows a couple of fraudulent payments.

I normally send out a permanent code before the temporary one expires, but in this case, the sun, sea and the sand got in the way!

A permanent code is on its way.

My apologies again.

Stephen.

**EDIT: a quick look at the program above and your CellCallBack function always returns zero. This means that you are forbidding the selection of any cell etc.

Posted: Mon Aug 06, 2007 10:01 am
by mueckerich
Thanks for the fast response, tho posted code is only to test the registration, it's not a real working thing. I would just minimize the code to be sure that its was not a matter of coding.
BTW.
but in this case, the sun, sea and the sand got in the way!
Where are you? :shock: The weather here is not this good the last weeks. 8)

Posted: Wed Sep 05, 2007 10:58 pm
by Thorsten1867
How can I prevent/disable the selection of more than one cell?

Posted: Wed Sep 05, 2007 11:44 pm
by srod
Not sure what you mean? Do you mean that you wish to prevent the user selecting multiple cells by click and drag etc?
Or do you mean that you wish to prevent the user editing certain cells?

I suspect it is the former you are asking about because you surely know the answer to the latter already! :wink:

Basically, you cannot prevent multiple cells being selected by click and drag etc. However, if your CellCallback is preventing certain cells from being selected for editing and thus preventing these cells from 'single cell selection', then these same cells can never be selected for editing. Of course, such cells can be selected by the user (by click and drag cell selection) and deleted by the user if you're not careful. Get around this by either using 'static' type cells or using the #egrid_CellUpdated message to prevent such deletions in the protected cells.

I did consider not allowing 'protected' cells to be highlighted by click and drag, but if you think about it this could cause absolute chaos for an application. Imagine the mess it could make of cut and paste! :)

Posted: Thu Sep 06, 2007 11:42 am
by Thorsten1867
srod wrote:Not sure what you mean? Do you mean that you wish to prevent the user selecting multiple cells by click and drag etc?
Yes, that's it. The problem is, that the cells are sometimes selected too, if I change the cell or row in the callback. Some user are wondering, if they can select multiple cells and it's not possible to do something with it.