On 05/08/2010 04:08 AM, Hans-Peter Diettrich wrote: > > Right, Windows manages messages...
Only the ones with message number lower that the "user" limit. Thus to do portable applications, only greater message numbers are allowed to be used with PostMessage. If a some GUI stuff needs to be triggered by a message in a portable way, you would not send the Windows-Message number and with that directly trigger the GUI system action by the thread (bypassing the LCL that is __supposed__ to manage the GUI actions), but send a message to the main thread and there (in the message handling procedure) do an LCL call that does the cation in the LCL-compatible way. IMHO, even when doing just a Windows project, it's not recommended to bypass the LCL and send a Windows-message (lower than "user") via PorstMessage (or SendMessage) directly to the Windows GUI-System, as the LCL's internal state might not reflect that Windows GUI System state, and might do erroneous stuff later. -Michael
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
