Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Stringgrid

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alex du Plessis

Hello List

Once again I am working with the Drawcell method of a stringgrid in order to change the color of the cell background and font.

When a drawcell event is defined, regardless of what the procedure does(it could even be empty) all titles of colums in a fixed row is not drawn ie they disappear and cannot be resurrected until the drawcell procedure is removed.

Any ideas?

Alex

Reply by email

Michael Van Canneyt
to Alex du Plessis
Alex du Plessis wrote 9 lines
Hello List Once again I am working with the Drawcell method of a stringgrid in order to change the color of the cell background and font. When a drawcell event is defined, regardless of what the procedure does(it could even be empty) all titles of colums in a fixed row is not drawn ie they disappear and cannot be resurrected until the drawcell procedure is removed.

This is normal, you must draw everything yourself then ?

Michael.

Reply by email

Alex du Plessis
to Michael Van Canneyt
Michael Van Canneyt wrote 19 lines
On Wed, 13 Aug 2008, Alex du Plessis wrote: > Hello List > > Once again I am working with the Drawcell method of a stringgrid in > order to change the color of the cell background and font. > > When a drawcell event is defined, regardless of what the procedure > does(it could even be empty) all titles of colums in a fixed row is not > drawn ie they disappear and cannot be resurrected until the drawcell > procedure is removed. > This is normal, you must draw everything yourself then ? Michael.

No problem with that - are there any resources where I can find out how it is done?

Reply by email

Michael Van Canneyt
to Alex du Plessis
Alex du Plessis wrote 22 lines
Michael Van Canneyt wrote: > On Wed, 13 Aug 2008, Alex du Plessis wrote: > > >> Hello List >> >> Once again I am working with the Drawcell method of a stringgrid in >> order to change the color of the cell background and font. >> >> When a drawcell event is defined, regardless of what the procedure >> does(it could even be empty) all titles of colums in a fixed row is not >> drawn ie they disappear and cannot be resurrected until the drawcell >> procedure is removed. >> > > This is normal, you must draw everything yourself then ? > > Michael. > > No problem with that - are there any resources where I can find out how it is done?

I just wrote an article on grids, but I didn't treat custom drawing, although I played with it. I could do most things by using the other callbacks.

Michael.

Reply by email