| View previous topic :: View next topic |
| Author |
Message |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jul 04, 2007 4:40 am Post subject: [Delphi Question] Preventing user input in a TMemo |
|
|
Hi
I'm trying to make a program with a TMemo in it, and I want that the user won't be able to change what's written there, but will still be able to mark text there, or to move the scroll bars (like in ICQ or MSN). How can I do this? I guess I need to override the handler of WM_KEY message or something... Any idea?
|
|
| Back to top |
|
 |
Simsgy Grandmaster Cheater
Reputation: 0
Joined: 07 May 2007 Posts: 581 Location: My new avatar <3
|
Posted: Wed Jul 04, 2007 4:46 am Post subject: |
|
|
In the Object Inspector, be on the Tmemo, and there is an item called "Read Only", make it true.
_________________
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jul 04, 2007 4:54 am Post subject: |
|
|
| lol. so simple... tnx a lot!
|
|
| Back to top |
|
 |
DevilGilad Grandmaster Cheater
Reputation: 0
Joined: 10 May 2007 Posts: 624 Location: Delete C:\WINDOWS folder and you'll be able to see me.
|
Posted: Wed Jul 04, 2007 5:07 am Post subject: |
|
|
There's 'Enabled' and 'Read Only'. It have to look like that:
Enabled=False
ReadOnly=True
_________________
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Wed Jul 04, 2007 10:48 am Post subject: |
|
|
| No, I'm using Enabled=True, Because I want the user to be able to mark some of the text and use the scroll bars..
|
|
| Back to top |
|
 |
|