Custom grid-control (egrid 2.0) - Updated.

Developed or developing a new product in PureBasic? Tell the world about it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Added a user guide in .pdf format.
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: have added a flag to the egrid_SelectCell() command which allows for the selection of cells from within code. The flag allows the cell to be selected as if it had been double-clicked etc. and the user can thus type directly into the cell (see the user guide).

Also, whilst the source code is still included, it has been reformatted to allow for the code to be tailbitten and made into a user library. The library is included along with the required residents file. See the user guide for installation instructions.

Finally, thanks to all those who passed on their suggestions etc.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Thanks, but all examples crash when closing the window [PageFault].
Tested with Win98SE.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

gnozal wrote:Thanks, but all examples crash when closing the window [PageFault].
Tested with Win98SE.
That is strange. I've had no similar reports!

Does it also crash if instead of using the library files, you XincludeFile "egrid.pb" ?
I may look like a mule, but I'm not a complete ass.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

gnozal wrote:Thanks, but all examples crash when closing the window [PageFault].
Tested with Win98SE.
Same for me using Win98SE.

XincludeFile "egrid.pb" then fails in egrid_CreateGrid() on the
AddElement line (about the fourth line)
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Sorry TerryHough, my fault; I left the egrid_Init() function intact.

Would you mind downloading again (without installing the library files). I've adjusted the source code file so that it should run as an include file and have adjusted example 4 accordingly.

Thanks.
I may look like a mule, but I'm not a complete ass.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

Now it runs, but still get a GPF when I close the window.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Thanks.

Without a Win 98 box it's going to be a difficult one to crack. I can't imagine what's causing it!
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 »

With TerryHough's help I have identified the problem re: Win 98 SE.

Have uploaded a fix directed at Win 98 SE users who might be able to test the new version.

If this doesn't work then I will need to add a command to the egrid function list as part of a more severe solution.

Thanks for any help.
I may look like a mule, but I'm not a complete ass.
Manol
User
User
Posts: 11
Joined: Thu May 05, 2005 1:19 pm
Location: Spain

Post by Manol »

Hi srod,
Congratulations for this Lib.
But I see one problem with the egrid_demo2.pb and similar with egrid_demo4.pb:

Procedure.l MyCellCallBack:

[ERROR] Invalid memory acces in line 140 (ProcedureReturn result)

My OS is Windows 2000 Professional.

Manolo
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

No problem here.

Line 140 in demo 2 is a comment, and in example 4 is the line

Code: Select all

result = #True
Are you sure you're using up to date demo programs?
I may look like a mule, but I'm not a complete ass.
Manol
User
User
Posts: 11
Joined: Thu May 05, 2005 1:19 pm
Location: Spain

Post by Manol »

srod wrote:No problem here.

Line 140 in demo 2 is a comment, and in example 4 is the line

Code: Select all

result = #True
Are you sure you're using up to date demo programs?
Hi,
I download today. The line 140 then deemo 4 is ProcedureReturn result

Manolo
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Got it.

Both demo 2 and demo 4 require the image file "test.bmp" to be within the same directory as the source code/executable.

Regards.
I may look like a mule, but I'm not a complete ass.
Manol
User
User
Posts: 11
Joined: Thu May 05, 2005 1:19 pm
Location: Spain

Post by Manol »

srod wrote:Both demo 2 and demo 4 require the image file "test.bmp" to be within the same directory as the source code/executable.

Regards.
:oops:
Thanks srod. Is very usefull.

Manolo
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Hi srod,

This is very nice!

What is your position on having this used in a closed-source and commercial app?

Specifically: I would like to use this instead of a listicongadget approach I am currently using in a "creation" wizard associated with an app that will be sold next year. Do I have your permission to do so?

Thanks again. :)
@}--`--,-- A rose by any other name ..
Post Reply