Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Delphi [игнор отключен] [закрыт для гостей] / сообщения от таймера / 3 сообщений из 3, страница 1 из 1
06.10.2003, 10:20
    #32284591
LA
LA
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
сообщения от таймера
Доброе время суток! Разрабатываю свой компонент. Нужно чтобы одно из действий происходило в процедуре OnTimer. Подскажите, какое из сообщений "улавливает" таймер?
...
Рейтинг: 0 / 0
06.10.2003, 10:28
    #32284610
ZrenBy
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
сообщения от таймера
The SetTimer function creates a timer with the specified time-out value.

UINT SetTimer(

HWND hWnd, // handle of window for timer messages
UINT nIDEvent, // timer identifier
UINT uElapse, // time-out value
TIMERPROC lpTimerFunc // address of timer procedure
);


Parameters

hWnd

Identifies the window to be associated with the timer. This window must be owned by the calling thread. If this parameter is NULL, no window is associated with the timer and the nIDEvent parameter is ignored.

nIDEvent

Specifies a nonzero timer identifier. If the hWnd parameter is NULL, this parameter is ignored.

uElapse

Specifies the time-out value, in milliseconds.

lpTimerFunc

Points to the function to be notified when the time-out value elapses. For more information about the function, see TimerProc.
If lpTimerFunc is NULL, the system posts a WM_TIMER message to the application queue. The hwnd member of the message's MSG structure contains the value of the hWnd parameter.
...
Рейтинг: 0 / 0
06.10.2003, 15:10
    #32285176
LA
LA
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
сообщения от таймера
я так поняла, что эта функция создает таймер на основе TWinControl, а если мой компонент потомок от TLabel и никак не связан с TWinControl, то каким образом туда таймер внедрить???
...
Рейтинг: 0 / 0
Форумы / Delphi [игнор отключен] [закрыт для гостей] / сообщения от таймера / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]