New TStringGrid - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New TStringGrid

mero73mero73 Posts: 13Member
Hi All,
I want to create a new TStringGrid component witht a published property
-for ex. "Alias button index"- which will enable the user from entering the index of the grid column on which he wants to display a "..." button at.
I know I need to override the OnDrawCell event on the new component, but I don't know how to do so.

Can anyone help me with that please
Your co-operation is highly appreciated

Comments

  • zibadianzibadian Posts: 6,349Member
    : Hi All,
    : I want to create a new TStringGrid component witht a published property
    : -for ex. "Alias button index"- which will enable the user from entering the index of the grid column on which he wants to display a "..." button at.
    : I know I need to override the OnDrawCell event on the new component, but I don't know how to do so.
    :
    : Can anyone help me with that please
    : Your co-operation is highly appreciated
    :
    Best is not to override the OnDrawCell itself, because that will not allow other programmers to use the event. You need to override the DrawCell() method instead. This will in turn call the OnDrawCell event to allow other programmers to change the appearance if they wish.
Sign In or Register to comment.