egrid 4 grid gadget - (static PB library version.)

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 »

michel wrote:Hello Srod,

Is there a way to use egrid to show data without giving the possibility to modify the shown data?

Michel
Aye, lots of ways.

The quickest way would be to set all cells to type #egrid_StaticString etc. You can combine this with code to prevent certain cells being selected by the user etc. Of course, preventing the selection of certain cells in effect renders them read only.

Alternatively, you can intercept various messages to prevent certain cells from haing their contents altered in any way.

If you need an example then just let me know.

:)
I may look like a mule, but I'm not a complete ass.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Is there a way to use egrid to show data without giving the possibility to modify the shown data?
In the callback just set it to a static type, see the default case below:

Code: Select all

Case #egrid_NotifyCellType
  Select *cellinfo\column
.
.
.
    Default
      *cellinfo\celltype=#egrid_StaticString
  EndSelect
SRod: Still no file at the link for beta 2...?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

DoubleDutch wrote:SRod: Still no file at the link for beta 2...?
What beta 2? I haven't created a beta 2 yet! :wink: Where's the link you're talking about?

The static library available for download on the egrid site is the most recent version uploaded. I have a new version which I'll upload tonight, which will be version 1.02 of egrid 5. The dll version is a little behind but that will be rectified tonight.


@michel, why are you not using egrid 5, it has quite a number of enhancements etc?
I may look like a mule, but I'm not a complete ass.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

This beta 2 -->
egrid 5 - beta 2 ready for testing!
.
.
.
Thanks again.

Download the beta: http://www.purecoder.net/egrid5Beta2.zip

Just noticed that its egrid 5!!!
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

SRod... How doe eGrid output text for printing?

In Excel columns are exact... I wonder if you had some similar feature?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Hi, -wow this is an old thread.

Please switch to the EsGRID thread.
I may look like a mule, but I'm not a complete ass.
Post Reply