Give me 30 mins to rebuild all the libs + dll's and upload (using a dialup which is SO S L O W !)
EsGRID grid gadget 2.1. Don't post here!
- Thorsten1867
- Addict

- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Thanks a lot!
I will test it tomorow. It's to late in Germany today.
I will test it tomorow. It's to late in Germany today.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
- Thorsten1867
- Addict

- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
I tried to download the new version, but I get 'egrid5_v1.06_PB4.1staticsetup.exe'
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
-
gnozal
- PureBasic Expert

- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Worked here (downloaded it this morning).Thorsten1867 wrote:I tried to download the new version, but I get 'egrid5_v1.06_PB4.1staticsetup.exe'
Direct link : http://www.purecoder.net/egrid5_v1.07_P ... csetup.exe
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- Thorsten1867
- Addict

- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
Now the link is correct!
All my eGrids now working perfectly.

All my eGrids now working perfectly.
Last edited by Thorsten1867 on Fri Jul 06, 2007 2:59 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
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:

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
; I tried gradient painting header cells and it looked awful! I thus removed this option.
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:

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!
Also, and to answer this question before it's asked
I may look like a mule, but I'm not a complete ass.
-
mueckerich
- User

- Posts: 22
- Joined: Thu Dec 16, 2004 10:36 am
- Location: Germany/Allgaeu
There is something strange happen to egrid.
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.
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
EndBelieve means you don't know
No problem here, have you changed to unicode?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

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.
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.
I may look like a mule, but I'm not a complete ass.
-
mueckerich
- User

- Posts: 22
- Joined: Thu Dec 16, 2004 10:36 am
- Location: Germany/Allgaeu
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.
The weather here is not this good the last weeks. 
BTW.
Where are you?but in this case, the sun, sea and the sand got in the way!
Believe means you don't know
- Thorsten1867
- Addict

- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
How can I prevent/disable the selection of more than one cell?
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
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!
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!
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!
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!
I may look like a mule, but I'm not a complete ass.
- Thorsten1867
- Addict

- Posts: 1372
- Joined: Wed Aug 24, 2005 4:02 pm
- Location: Germany
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.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?
Last edited by Thorsten1867 on Thu Sep 06, 2007 12:05 pm, edited 1 time in total.
Translated with http://www.DeepL.com/Translator
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
Download of PureBasic - Modules
Download of PureBasic - Programs
[Windows 11 x64] [PB V5.7x]
