Hi Rich,

Set Enabled back to True and set ReadOnly to True. This will stop the
user from changing the text, but let them use the scroll bars.

Regards,
Darren
--
Darren Ferguson
Senior Software Engineer
Clinical Software Division
Medtel Australia
Adelaide, South Australia
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Cooper
Sent: Wednesday, 16 August 2006 4:12 AM
To: Borland's Delphi Discussion List
Subject: Scrollbars in TMemo when Enabled=False

Hi All,

Using D7 and Indy 9, I have some data fields that are extracted from web
pages, so they can be arbitrarily long.  I want to use TMemos with
ssBoth scrollbars so people can see the entire field.
First, I used TLabels to display the fields, but the fields extended
past the limits of my TPanel which holds the TLabels, so I went to
TMemos with scrollbars to get around this problem.  

But I don't want the user to be able to change the text in the TMemo any
more than s/he would with the TLabel.  So I set Enabled=False in the
TMemo fields.

Problem is, when the TMemo has lots of text, the user can't operate the
scrollbars when Enabled=False.  So s/he can't see the material in the
TMemo which is off the visual area.  

I would like to present the entire text to a user, letting the user
manage the scrollbar positions, but not let the user change the text.

Does anyone know how to do this?

Thanks,
Rich

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to