ScrollBars in TMemo lazarus / 31-LCL ---------------------------------------------------------------------- AgriMensor · 2024-02-20 22:17 Has anyone else had this rather fundamental problem and, if so, how did you solve it? I have a standard TMemo on a standard TPanel on a standard TForm. TMemo has the following design-time settings: Alignment: taCenter Anchors: akBottom, akLeft, akRight Read Only: True ScrollBars: ssVertical TabStop: False WordWrap: True (although I have also tried it with False) The problem is that the scroll bar is always greyed out and I cannot read the whole text (see photo - can be zoomed to read better). Any help on this gratefully received. Many thanks! ---------------------------------------------------------------------- AgriMensor · 2024-02-20 22:30 Better screen shot ---------------------------------------------------------------------- dbannon · 2024-02-20 22:45 That is pretty weird Agri. The scroll bar to be greyed out means the TMemo thinks all your text is visible. Just how much is missing ? Just the line we see the top of or is there more txt below that ? What if you put a couple of line feed, carriage returns at the end of the text ? I think there must be some confusion with how much space the font reports it needs. Have you tried any other fonts to see if its a font problem ? Or a DPI scaling issue ? You could, possibly, make a stand alone app with just the TMemo, same font and same text, see if its replicated ? Davo ---------------------------------------------------------------------- KodeZwerg · 2024-02-20 22:47 Can you attach a minimalistic demo of what you have done? (tform + tmemo + demo text + your tmemo property settings) No code needed since its just properties (i guess) Beside of that it would be useful to know what Lazarus/FPC combination (version number) you use and the target platform it runs on. ---------------------------------------------------------------------- AgriMensor · 2024-02-21 13:42 Sorry - forgot to post platform details earlier; here they are: Windows 10 Pro, Version 22H2 OS build   19045.4046 Windows Feature Experience Pack 1000.19053.1000.0 Lazarus Version 2.2.6 Date 2024-02-19 FPC Version 3.2.2 The prog will eventually be ported to Linx Mint, Mac and Chromebook ---------------------------------------------------------------------- TRon · 2024-02-21 13:48 Judging on the screenshots it looks like the memo component itself is not fitting the form, e.g. the bottom of the memo is situated underneath the form. E.g. note that the bottom arrow of the scrollbar of the memo is not visible (and it should). Do you perhaps have a statusbar or a panel aligned to the bottom of your form (as well) ? It might be the memo is situated below the z-order of another component or simply does not fit the form. As KodeZwerg wrote: try to make reproducible example so that we are able to test/check/verify. ---------------------------------------------------------------------- AgriMensor · 2024-02-21 14:14 Hi Davo (dbannon)! Thanks for your suggestions :-) The whole of the text is shown in the Word file on the green background in the first screen shot. I've tried inserting 20 CRLFs after the last line and then ***END*** to demarcate the end of the text. Using this, it now comfortably fits in all of the "real" text but not down to the ***END***. However, the scroll bars are still greyed out. I've also tried changing the font from whatever the default is to Times New Roman but no significant difference there either. I'll take a look at making a stand-alone prog if none of the other contributors' suggestions work. Thanks once again, and any other suggestions welcomed! Steve ---------------------------------------------------------------------- AgriMensor · 2024-02-21 14:25 Hi KodeZwerg! Thanks for your comments and suggestions :-) You're right, no code yet, but please see my reply to dbannon today and also my earlier post regarding the platform environment. I'll take a look at making a minimalistic demo if none of the other contributors' suggestions work. I'm working my way through them now . . . BTW, I rebuilt Lazarus a couple of days ago in order to add some more 3rd-party components, so there may be something frightful in the latest version. However, my own feeling is that it may be something seriously dumb that I have done wrong myself since this is such a fundamental problem :-( Thanks once again, and any other suggestions welcomed! Steve ---------------------------------------------------------------------- rvk · 2024-02-21 14:48 Quote from: AgriMensor on February 20, 2024, 11:17:52 pmThe problem is that the scroll bar is always greyed out and I cannot read the whole text (see photo - can be zoomed to read better). Looking at that image... I don't see the bottom of the TMemo. The reason why I see that is because the vertical scrollbar should have a similar arrow at the bottom as at the top. And the bottom arrow isn't visible. So your TMemo is bigger than the panel which is holding it. Make sure the alignment of your TMemo is correct (alBottom, alClient or alTop) and it should become visible. ---------------------------------------------------------------------- AgriMensor · 2024-02-21 17:57 Hi TRon and rvk! Thanks for both of your suggestions and WELL SPOTTED :-) I thought it would be a dumb error on my part and I was right! I've corrected it now and I can see the whole of the scroll up and scroll down arrows. However, they're dead, even with short and long content in the TMemo area. Thanks to everyone for their helpful suggestions! Steve