| View previous topic :: View next topic |
| Author |
Message |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Fri Jul 24, 2009 1:43 pm Post subject: Setting a textbox as read only? |
|
|
| How am I able to create a textbox that's read only? Like people can only copy what it outputs, but they can't edit it or anything. How am I able to do that?
|
|
| Back to top |
|
 |
To0k' Grandmaster Cheater
Reputation: 0
Joined: 29 Jul 2009 Posts: 921
|
Posted: Fri Jul 24, 2009 2:12 pm Post subject: |
|
|
-_-"
What language?
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Fri Jul 24, 2009 2:29 pm Post subject: |
|
|
by textbox i assume you mean edit control in which case just set ES_READONLY when you're creating it
you could even use a static text control then have a button which copies the string being displayed into windows' clipboard
|
|
| Back to top |
|
 |
mStorm Expert Cheater
Reputation: 0
Joined: 21 Feb 2009 Posts: 107
|
Posted: Fri Jul 24, 2009 2:53 pm Post subject: |
|
|
| VB6/VB.NET/C#: There's a textbox property of "Locked" that does this.
|
|
| Back to top |
|
 |
FullyAwesome I post too much
Reputation: 0
Joined: 05 Apr 2007 Posts: 4438 Location: Land Down Under
|
Posted: Fri Jul 24, 2009 9:28 pm Post subject: |
|
|
| mStorm wrote: | | VB6/VB.NET/C#: There's a textbox property of "Locked" that does this. |
actually the property is called ReadOnly, Locked is so that you can't move/resize the control in the designer.
_________________
|
|
| Back to top |
|
 |
&Vage Grandmaster Cheater Supreme
Reputation: 0
Joined: 25 Jul 2008 Posts: 1053
|
Posted: Sat Jul 25, 2009 10:29 am Post subject: |
|
|
| Oh gawd. I'm talking about WINAPIs.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sat Jul 25, 2009 12:00 pm Post subject: |
|
|
| in which case you should've read my post
|
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat Jul 25, 2009 4:05 pm Post subject: |
|
|
| Just send the message to the control and it will be readonly.
|
|
| Back to top |
|
 |
FullyAwesome I post too much
Reputation: 0
Joined: 05 Apr 2007 Posts: 4438 Location: Land Down Under
|
Posted: Sat Jul 25, 2009 5:28 pm Post subject: |
|
|
yeah what slugsnack posted, something like this.
_________________
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Sat Jul 25, 2009 8:03 pm Post subject: |
|
|
| Or just disable it.
|
|
| Back to top |
|
 |
BanMe Master Cheater
Reputation: 0
Joined: 29 Nov 2005 Posts: 375 Location: Farmington NH, USA
|
Posted: Sat Jul 25, 2009 8:39 pm Post subject: |
|
|
text boxs are bad.. EM_SETLIMITTEXT buffer offerflow.. ;p
done it to many a game..DC's everyone that sees it.. if you can bypass the buffer checking..
_________________
don't +rep me..i do not wish to have "status" or "recognition" from you or anyone.. thank you. |
|
| Back to top |
|
 |
karmah Newbie cheater
Reputation: 0
Joined: 28 Jul 2009 Posts: 19 Location: Edinburgh UK
|
Posted: Wed Jul 29, 2009 6:58 am Post subject: |
|
|
How do you mean?
Like using delphi to make an edit box readonly within another application?
with winapi?
or in your own form.. in which case the win Api sounds like overkill, (along the lines of trapping all input) when the object inspector has its own readonly function..
Maybe its the lack of breakfast, but what is it you're actually doing?
_________________
//todo : sig :\ |
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Wed Jul 29, 2009 7:35 am Post subject: |
|
|
| karmah wrote: | How do you mean?
Like using delphi to make an edit box readonly within another application?
with winapi?
or in your own form.. in which case the win Api sounds like overkill, (along the lines of trapping all input) when the object inspector has its own readonly function..
Maybe its the lack of breakfast, but what is it you're actually doing? |
He isn't using delphi.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Jul 29, 2009 8:36 am Post subject: |
|
|
how would you know ? it's one amongst the impressive array of languages void has 'learnt'. i think he's pretty pro at delphi and umm vb. he once told me he can make more efficient apps in vb and delphi than i can in assembly
|
|
| Back to top |
|
 |
karmah Newbie cheater
Reputation: 0
Joined: 28 Jul 2009 Posts: 19 Location: Edinburgh UK
|
Posted: Wed Jul 29, 2009 9:15 am Post subject: |
|
|
Lmfao, sorry guys.. misread the title..
(been answering delphi questions all morning)
Got it figured though?
_________________
//todo : sig :\ |
|
| Back to top |
|
 |
|