I need help on this:
To build a component with a button on it, when the button is clicked, a dialog style form will be displaying,
on this form:
1. certain buttons like OK, Add.
2. when button OK on the form is clicked, the form is closed, an event e.g. OnCancel in the component will be connected to the OK button's OnClick event.
3. the component will get certain result calculated at the form when OK button is clicked, an event AfterCalc in the component is fired.
my problems: how can I have a component like this with its properties and event handlers that relate to a form that is only create when requied