help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Resource strings][Types][Classes] Reference for unit 'eventlog' (#fcl)

TEventLog.EventIDOffset

Offset for event ID messages identifiers

Declaration

Source position: eventlog.pp line 93

published property TEventLog.EventIDOffset: DWord
  read FEventIDOffset
  write FEventIDOffset;

Description

EventIDOffset is the offset for the message formatting strings in the windows resource file. This property is ignored on other platforms.

The message strings in the file registered with the RegisterMessageFile call are windows resource strings. They each have a unique ID, which must be communicated to windows. In the resource file distributed by Free Pascal, the resource strings are numbered from 1000 to 1004. The actual number communicated to windows is formed by adding the ordinal value of the message's eventtype to EventIDOffset (which is by default 1000), which means that by default, the string numbers are:

1000
Custom event types
1001
Information event type
1002
Warning event type
1003
Error event type
1004
Debug event type

See also

RegisterMessageFile

  

Register message file

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505