Blog Archives

Component Development: Publishing events from ancestors

When developing a new component and deriving from TGraphicControl  the list of events in the Object Inspector looks rather empty.


Does this mean we have to implement any user interaction like OnDblClick  or OnClick  ourselves?

If we look closer at the ancestor TControl we clearly find the definition of the events:

property OnCanResize: TCanResizeEvent
read FOnCanResize write FOnCanResize;

Read more ›

Tags: , , , , ,

Flexibility of VCL and FMX programming …using events or properties

The following example might seem rather trivial, but I could not help but think about if there was a downside to any of the two….

Here’s the example: I have a grid that allows the data in it to be edited. Furthermore, I added a checkbox to the form that is to make the grid read only when checked:


Reason for this is that I do not want to get into edit mode by accident.

Read more ›

Tags: , ,