powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Delphi [игнор отключен] [закрыт для гостей] / сообщения от таймера
3 сообщений из 3, страница 1 из 1
сообщения от таймера
    #32284591
LA
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Доброе время суток! Разрабатываю свой компонент. Нужно чтобы одно из действий происходило в процедуре OnTimer. Подскажите, какое из сообщений "улавливает" таймер?
...
Рейтинг: 0 / 0
сообщения от таймера
    #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
сообщения от таймера
    #32285176
LA
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
я так поняла, что эта функция создает таймер на основе TWinControl, а если мой компонент потомок от TLabel и никак не связан с TWinControl, то каким образом туда таймер внедрить???
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Delphi [игнор отключен] [закрыт для гостей] / сообщения от таймера
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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