Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Delphi Question] Preventing user input in a TMemo

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jul 04, 2007 4:40 am    Post subject: [Delphi Question] Preventing user input in a TMemo Reply with quote

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
View user's profile Send private message
Simsgy
Grandmaster Cheater
Reputation: 0

Joined: 07 May 2007
Posts: 581
Location: My new avatar <3

PostPosted: Wed Jul 04, 2007 4:46 am    Post subject: Reply with quote

In the Object Inspector, be on the Tmemo, and there is an item called "Read Only", make it true.
_________________

Designer, WebMaster and a Delphi programmer.
TrPlayer, my biggest Delphi project hosted on SourceForge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jul 04, 2007 4:54 am    Post subject: Reply with quote

lol. so simple... tnx a lot!
Back to top
View user's profile Send private message
DevilGilad
Grandmaster Cheater
Reputation: 0

Joined: 10 May 2007
Posts: 624
Location: Delete C:\WINDOWS folder and you'll be able to see me.

PostPosted: Wed Jul 04, 2007 5:07 am    Post subject: Reply with quote

There's 'Enabled' and 'Read Only'. It have to look like that:
Enabled=False
ReadOnly=True

_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jul 04, 2007 10:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites