Board index » delphi » Scrolling a TMemo?
Nicholas Sherlock
![]() Delphi Developer |
Sun, 02 May 2004 12:01:41 GMT
|
Nicholas Sherlock
![]() Delphi Developer |
Sun, 02 May 2004 12:01:41 GMT
Scrolling a TMemo?
Hi all,
Sorry if someone else has already asked this, but... Is it possible to Thanks in advance, Nick |
Maarten Wiltin
![]() Delphi Developer |
Sun, 02 May 2004 15:47:23 GMT
Re:Scrolling a TMemo?QuoteNicholas Sherlock wrote in message <9ssqah$g0...@lust.ihug.co.nz>... scrolls to the cursor position, for example. What you want is different and I don't know the message for it, but it could well exist. Perhaps the help file has some pointers from WM_SCROLL_CARET to Groetjes, |
Louis Somer
![]() Delphi Developer |
Fri, 07 May 2004 08:14:56 GMT
Re:Scrolling a TMemo?I want to do the same thing with a search option in my prog, but I strangely can't find WM_SCROLL_CARET in the Win32 help files. How should i call it? I get an "Undeclared Identifier" when trying to compile. I have Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ToolWin, ComCtrls, StdCtrls, ExtCtrls; in the uses clause. Do i miss something? (Using D4). Memo1.CaretPos is Read only, so i also can't set this value. Hope someone can help us. "Maarten Wiltink" <maar...@kittensandcats.net> schreef in bericht Quote> Nicholas Sherlock wrote in message <9ssqah$g0...@lust.ihug.co.nz>... |
Bj?rge S?the
![]() Delphi Developer |
Fri, 07 May 2004 07:33:42 GMT
Re:Scrolling a TMemo?"Louis Somers" <lsom...@NOSPAMconceptfsa.nl> skrev i melding news:9t9fds$1bu6$1@scavenger.euro.net... Quote> I want to do the same thing with a search option in my prog, but I -- |
Louis Somer
![]() Delphi Developer |
Sat, 08 May 2004 03:37:08 GMT
Re:Scrolling a TMemo?I found it! Var Position: integer; Thanks anyway :-) "Bj?rge S?ther" <REMOVE_bsaether@THIS_online.no> schreef in bericht Quote> "Louis Somers" <lsom...@NOSPAMconceptfsa.nl> skrev i melding |
Terry Russel
![]() Delphi Developer |
Sat, 08 May 2004 05:39:05 GMT
Re:Scrolling a TMemo?Quote"Louis Somers" <lsom...@NOSPAMconceptfsa.nl> wrote in message Quote> I want to do the same thing with a search option in my prog, but I aka 'BogPond' 'WetSpot''PondScum' 'TeleTubbies' et al continues its experiments in catastrophy theory edit message?? to search you can use multiple words in find In general, but not in this case ,some of the indexes in w32 help It is also listed in sources/rtl/win/messages.pas greppas.bat |
Maarten Wiltin
![]() Delphi Developer |
Sat, 08 May 2004 05:53:14 GMT
Re:Scrolling a TMemo?QuoteLouis Somers wrote in message <9tbji7$241...@scavenger.euro.net>... Groetjes, |
Louis Somer
![]() Delphi Developer |
Sun, 09 May 2004 06:51:22 GMT
Re:Scrolling a TMemo?Ah EM_, instead of WM_... hehe, should have thought of searching fro the words instead of the command. I also didn't know i had the Grep command in Windows. Super! "Terry Russell" <trochi...@bigpond.com> schreef in bericht Quote> "Louis Somers" <lsom...@NOSPAMconceptfsa.nl> wrote in message |
Louis Somer
![]() Delphi Developer |
Sun, 09 May 2004 06:58:45 GMT
Re:Scrolling a TMemo?Thanks, didn't know about 'Perform'. Memo1.Perform(WM_VSCROLL, MAKELONG(SB_THUMBPOSITION, Position), 0); or: Memo1.SelStart := Position; Works slightly better because you don't have to find out the line number "Maarten Wiltink" <maar...@kittensandcats.net> schreef in bericht Quote> Louis Somers wrote in message <9tbji7$241...@scavenger.euro.net>... |
Terry Russel
![]() Delphi Developer |
Sun, 09 May 2004 12:57:03 GMT
Re:Scrolling a TMemo?Quote"Louis Somers" <lsom...@NOSPAMconceptfsa.nl> wrote in message Quote> Ah EM_, instead of WM_... hehe, should have thought of searching fro the borland C has had a grep for a while |
Maarten Wiltin
![]() Delphi Developer |
Sun, 09 May 2004 21:40:13 GMT
Re:Scrolling a TMemo?QuoteLouis Somers wrote in message <9tejo9$26c...@scavenger.euro.net>... was an honest mistake on my part, but I'm pleased you found the answer anyway. Groetjes, |
AlanGLLo
![]() Delphi Developer |
Mon, 10 May 2004 04:38:04 GMT
Re:Scrolling a TMemo?In article <9tejo9$26c...@scavenger.euro.net>, "Louis Somers" Quote<lsom...@NOSPAMconceptfsa.nl> writes: SendMessage(handle, ... sends the message to that windows proc and does not return until the message has been processed, PostMessage(handle, ... puts the message in that windows messgae queue and returns immediately. Alan Lloyd |