** High Priority **
Hi.
Can someone please tell me if its possible to do a cell.align :=
center;
in a stringgrid please.
I cant see a property anywhere that will allow cell by cell alignment.
Cheers
Chris Veale
__
The contents of this
I don't think so. Just draw the text yourself on the onDrawCell event.
Something like: (from memory)
var
lStr: String;
begin
SetBkMode(StringGrid1.Canvas.Handle, TRANSPARENT);
StringGrid1.Canvas.FillRect(Rect);
lStr := 'My String';
DrawText(StringGrid1.Canvas.Handle, PChar(lStr),
Chris Veale wrote:
** High Priority **
Hi.
Can someone please tell me if its possible to do a cell.align :=
center;
in a stringgrid please.
Not on a standard grid, no. You have to do your own cell drawing to get
non-standard appearance... or get a component that does it for you :
--
Corey
OK, sorted it out now. I was asking Excel to copy a large range and did not
give it time to finish putting it on the clipboard before trying to use it.
So to wait for it to be ready I just call Application.ProcessMessages until
GetOpenClipboardWindow returns 0.
Phil.
- Original Message -
Has anyone used QueryServiceConfig ?
I cant get it working. When I pass the structure Service_Config it
returns an error saying it needs 226 bytes (whereas the size of the
Service_Config is 36 bytes).Regards
Rohit
==
CFL -
When I have a threads freeonterminate set and terminate is
invoked in the mainforms formclose the threads destroy is not
called.
Is this normal ? How do I get around it ?Regards
Rohit
==
CFL - Computer Fanatics Ltd. 21
When I have a threads freeonterminate set and terminate is
invoked in the mainforms formclose the threads destroy is not
called.
Are you calling Waitfor after the terminate? TThread.Terminate is a
polite request to terminate not the API terminate with extreme prejudice.
Not normal.
Have you remembered to override the destructor?
In your execute method are you checking the terminated property?
Rob Martin
Software Engineer
phone 03 377 0495
fax 03 377 0496
web www.chreos.com
- Original Message -
From: Rohit @cfl.co.nz
To: NZ Borland Developers