Thanx Chuck,
I'll check the component out for future needs. What I ended up
doing for my current problem was to snap a screenshot of the grid, load it
to a bmp I created, and then sent that to the printer's canvas.
>From "Robert Meek"
Personal e-mail: [EMAIL PROTECTED]
dba / "Tangentals Design"
Visit us at: www.TangentalsDesign.com
Home of "The Keep"!
Member of: "Association of Shareware Professionals"
Moderator for: "The Delphi", "Delphi-DB", and "Delphi-Talk"
programming lists at elists.org, and "DelphiTalk.net"
at www.DelphiTalk.net
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Chuck Belanger
Sent: Wednesday, March 30, 2005 11:47 AM
To: Borland's Delphi Discussion List
Subject: Re: StringGrids D2005
Hi, Robert:
I just got into using a TStringGrid, too, after doing quite a lot with
DBGrids
(TwwDBGrid, mainly). You're right they are very different. Somehow I thought
that one could just assign an Object like a checkbox and away I go. Not So!
(lots of special cell drawing needed--did find a lot on this, though if you
want
to stick with TStringGrids.)
Anyway, I'm having the same issues with wanting to set all the setup values
for
the grid (for me in a table, not an ini file). I was Googling TStringGrids a
couple of days ago and stumbled on TGridView. You may want to check it out.
It has a print component; the ability to load from/to file, stream; various
column types that automatically setup various objects in the cells and a lot
of
other stuff you might find helpful.
Today I'm starting to actually setup and then save the initial values of the
grid.
Best regards from a Delphi 7 user and newbie,
Chuck Belanger
Robert Meek wrote:
> Although I've done a lot of work with DBGrids I've not up until
now
> ever had need to use a TStringGrid, and as much as they are alike I'm
> surprised at many of the differences...some of which have me a little
> baffled!
> For example, although one can set the columns up so that the user
> can alter their individual widths at runtime, I have not been able to find
a
> way of storing this info back into an ini-file so that these settings can
be
> retained and used again in future sessions. Is this possible? If so how,
> because the StrGrid.Col[0] doesn't have a width property...only a default
> width that sets all of them the same including the fixed column!
> Also, I was under the impression I could store a stringgrid with
any
> string info it's cells contain, including that in it's fixed columns, to a
> text file and then load the stringgrid back up with that same info
directly
> from the file. It seems the individual column text can be saved that way
> but not all in one file. How is this handled?
> Finally, Because this particular grid will be used by a restaurant
> manager to set her waitress's working hours, I need to be able to print a
> copy of the grid out in landscape format after she has made all the
entries
> for a particular week. I don't want a print screen because that would
show
> the entire form...just the grid itself. How can this best be
accomplished?
>
> >From "Robert Meek"
> Personal e-mail: [EMAIL PROTECTED]
> dba / "Tangentals Design"
> Visit us at: www.TangentalsDesign.com
> Home of "The Keep"!
>
> Member of: "Association of Shareware Professionals"
> Moderator for: "The Delphi", "Delphi-DB", and "Delphi-Talk"
> programming lists at elists.org, and "DelphiTalk.net"
> at www.DelphiTalk.net
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.8.4 - Release Date: 03/27/2005
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi