Re: Paste too fast
From: Tomaz Koritnik (tomaz_nospam_at_dewesoft.si)
Date: 11/20/03
- Next message: Tomaz Koritnik: "Re: Moving files.."
- Previous message: Erivan Kal: "how to create a sticky"
- In reply to: Jean-Pierre Lamon: "Paste too fast"
- Next in thread: Jean-Pierre Lamon: "Re: Paste too fast"
- Reply: Jean-Pierre Lamon: "Re: Paste too fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Nov 2003 19:58:27 +0100
Hi
If I understand then you're problem is that sometimes you get the data
before the new memo is created. I don't know why this happens. But why do
send message two times, one for memo creation and one for data paste. Try to
send WM_PASTE only and when program receives data, it creates memo and
pastes data into it. This will always work and should be no confusion. Also,
what do you mean by "create memo by sending some shortcuts"? I understand
this as: you are sending a message to window to inform it to create new memo
control. Maybe it's something wrong in the target app which creates memos so
that app sometimes pastes data into wrong memo.
regards,
Tomaz
"Jean-Pierre Lamon" <gipi_removeme@ngscan.com> wrote in message
news:3fbd035f@newsgroups.borland.com...
> Hi all,
>
> I'm gonna try to be comprehensible :-)
> I have an application that must copy some datas from a db into a set of
> TMemo in another application.
> I can find the external window with
> WndName := 'MARC editor';
> Wnd := FindWindow('TeditorWindow', PChar(WndName));
> wnd := GetFocused(wndName);
>
> Then, I can create a new TMemo in this external window sending some
> shortcuts.
> The new TMemo is created and empty. And I want to fill it with my DB's
> datas.
>
> WndChild := FindWindowEx(FindWindow('TeditorWindow', PAnsiChar(WndName)),
0,
> 'TMemo', PAnsiChar(''));
>
> I fetch my DB, and datas are copied into the clipboard. I then paste them
> sending a:
> SendMessage(wndChild, wm_paste, 0, 0);
>
> The datas are copied, it's ok. But sometimes, not in the right place. A
new
> TMemo is created before the datas are pasted. And the datas are pasted in
> this new TMemo, not the pred one. What can I do to make my application
wait
> for datas being well pasted before launching a new TMemo creation.
>
> Thx in advance
>
>
- Next message: Tomaz Koritnik: "Re: Moving files.."
- Previous message: Erivan Kal: "how to create a sticky"
- In reply to: Jean-Pierre Lamon: "Paste too fast"
- Next in thread: Jean-Pierre Lamon: "Re: Paste too fast"
- Reply: Jean-Pierre Lamon: "Re: Paste too fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|