[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?
Marcos Douglas
md at delfire.net
Sun Dec 22 17:54:55 CET 2013
On Sun, Dec 22, 2013 at 7:06 AM, Juha Manninen
<juha.manninen62 at gmail.com> wrote:
> On Sat, Dec 21, 2013 at 5:41 PM, Marcos Douglas <md at delfire.net> wrote:
>>> LCL (and VCL) typically use events, like TNotifyEvent. They are
>>> basically just call-back functions.
>> Oh, not same. I use a lot Events -- no only Form or GUI components --
>> in my core codes but PostMessage is very different, eg., you call a
>> PostMessage, show a Modal Form and the process will start after; the
>> task code is not inside the instance of the Form and the Form knows
>> nothing about the task.
>
> Ok, true.
> Some of the Windows message are ported to be cross-platform. I have
> used OnIdle handler and sometimes threads when I want the action to
> happen later.
I use threads too, but I like make things as simple as possible and
threads can be hard sometimes. Use PostMessage is very easy and
simple.
Marcos Douglas
More information about the Lazarus
mailing list