A Simple? Component
Posted on 2006-03-28
I cannot make a component, can you give me a simple framework for it that I can then add to please.
It must show a modal form that has a label and a timer, the timer is enabled when the form is shown and then when the timer times out the form is closed.
I think it would be best if you start from scratch instead of trying to fix my mess, but this is what I have . . .
In the Component Show I can -
create the form, create the label and position it, size the form, create the timer, assign the timer interval, enable the timer.
I can assign properties to the component and they are shown in the property editor at design time, things like label caption, timer time.
From that I am sure I can expand your very simple example to do what I want it to do.
The problem is that I cannot make the timer time out.
Evidence that the timer doesn't time out (as opposed to it timing out but not closing the form) is that in the TimerTime procedure in the component I put a messagedlg and that message is never shown.