EsGRID grid gadget 2.1. Don't post here!

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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 !)

:)
I may look like a mule, but I'm not a complete ass.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Thanks a lot!
I will test it tomorow. It's to late in Germany today. :wink:
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

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]
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Now the link is correct!
All my eGrids now working perfectly. :D :D :D
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]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :)
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
mueckerich
User
User
Posts: 22
Joined: Thu Dec 16, 2004 10:36 am
Location: Germany/Allgaeu

Post 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
Believe means you don't know
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

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.
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
mueckerich
User
User
Posts: 22
Joined: Thu Dec 16, 2004 10:36 am
Location: Germany/Allgaeu

Post 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)
Believe means you don't know
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

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]
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Thorsten1867
Addict
Addict
Posts: 1372
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post 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.
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]
Post Reply