[Solved] Scrollable, single line textbox - howto lazarus / 10-Designer ---------------------------------------------------------------------- MathMan · 2026-05-13 08:49 Hello all, I admit I haven't worked with GUI applications so far (total noob on this topic). What I need is the following - on a form I would like to have a single line textbox which is scrollable - the textual content will be provided by the program and must not be editable by the user - the text can become long (~1000 characters), therefore I would like to have a scrollbar for the textbox What is a reasonable control for the textbox (there seems to be no direct fit in the available controls) and how do I associate the scrollbar to it? MathMan ---------------------------------------------------------------------- cdbc · 2026-05-13 09:46 Hi I'd use a TMemo and turn off 'WordWrap', turn on 'ssHorizontal' in Scrollbars and finally turn on 'ReadOnly'. Have a 'LookSee' in the attachment  Regards Benny ---------------------------------------------------------------------- MathMan · 2026-05-13 10:03 Many thanks Benny - that looks like what I need. Regards, MathMan ---------------------------------------------------------------------- wp · 2026-05-13 10:04 Drop a TScrollbox on the form, turn off its VertScrollbar (Visible = false). Drop a TLabel on the ScrollBox, move it to the top/left corner of the scrollbox. Assign the text to the Label.Caption. Set the ClientHeight of the scrollbar to the Height of the Label. Since the Label has AutoSize=true by default it will be a single-line textbox. And a Label cannot be edited. ---------------------------------------------------------------------- MathMan · 2026-05-13 11:00 Many thanks wp - I'll try that too. From your explanation it seems to be even closer to my requirements. Regards, MathMan