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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.