From: "Alexandru Preda"
Subject: Re: Sending a PageUp / PageDown message to a TMemo
Date: 12 May 1999 00:00:00 GMT
Message-ID: <7hbt2c$qc621@forums.borland.com>
References: <7hbecu$q9311@forums.borland.com>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.delphi.objectpascal
You can try
Memo1.Perform(WM_VSCROLL,MAKEWPARAM(SB_PAGEDOWN,0),0)
or
Memo1.Perform(WM_VSCROLL,MAKEWPARAM(SB_PAGEUP,0),0).
Alex.
Martin Hekster wrote in message <7hbecu$q9311@forums.borland.com>...
>Hello,
>
>if the user presses the PageUp or PageDown button I want a TMemo - wich not
>has the focus - to act like if it has the focus.
>
>Catching PageUp/PageDown is not the problem (I set the form KeyPreview
>propertie to True) but sending the Message to the TMemo wont work. I have
>played arround with TMemo.Perform but dont know the exact message to send
>(were can I find those messages?).
>
>I am verry Thankfull for every help!
>
>
>Martin
>
>