Hi,
does anybody know a way of getting a "live" display of the time on a
dialog box.
I have assumed a TransferStruct is necessary and, it seems to me, a
GetTime function which would provide the time by constructing a TDate object
(this inside a loop). The GetTime function would then call a transfer
function (presumably, several times a second) to send info back to the dialog
box using tdSendData.
The snag is that the GetTime function has to be activated by some event
which occurs when the dialog construction is complete, an
"EV_DIALOG_CONSTRUCTED" if there is one, as it can't be called from the
dialog's constructor or SetUpWindow (these both terminate before the dialog
is seen/constructed. Is there some windows message which is sent at dialog
construction? Equally there needs to be a termination of the GetTime function
using the IDOK or IDCANCEL messages. How does one trap these?
Not sure whether any of that makes sense...however, any feedback will be
greatly appreciated.
thanks in advance
Steve.
---
---------------
* Origin: Melbourne PC User Group BBS (3:632/309)
|