How to make a PluggableTextMorph read-only?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make a PluggableTextMorph read-only?

Daniel Taschik
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks,

I'm working on a project at my University and we develop a TetriNet  
Client with Squeak. We have a small problem on how to make a  
PluggableTextMorph read-only. The Morph shall display the log of the  
internal Chat.

Can anyone tell me how to force him to just display the text so that  
nobody can write in it?

Tanks a alot!

Daniel Taschik

- --
mail: [hidden email]
web: www.taschik.com
mobile: +49 162 7604429
skype: danieltaschik
icq: 106018852
jabber: [hidden email]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk9EqkACgkQo9checNKopQdhQCdGvNAboaf2OmnB9oD2VVHbKLf
CuwAn2K+l9apdeieWvL5ETmeufIfO1/B
=Kitn
-----END PGP SIGNATURE-----
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to make a PluggableTextMorph read-only?

Steve Wessels
Look at the code used in eIRC

- Steve

On Dec 8, 2008, at 6:27 AM, Daniel Taschik <[hidden email]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks,

I'm working on a project at my University and we develop a TetriNet Client with Squeak. We have a small problem on how to make a PluggableTextMorph read-only. The Morph shall display the log of the internal Chat.

Can anyone tell me how to force him to just display the text so that nobody can write in it?

Tanks a alot!

Daniel Taschik

- --
mail: [hidden email]
web: www.taschik.com
mobile: +49 162 7604429
skype: danieltaschik
icq: 106018852
jabber: [hidden email]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk9EqkACgkQo9checNKopQdhQCdGvNAboaf2OmnB9oD2VVHbKLf
CuwAn2K+l9apdeieWvL5ETmeufIfO1/B
=Kitn
-----END PGP SIGNATURE-----
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners



     
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to make a PluggableTextMorph read-only?

Daniel Taschik
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Steve,

thanks for your quick response. But unfortunatly I can't install eIRC  
because it is probably to old. I am using Croquet 1.0.

Maybe you could explain me what the eIRC does to make his pluggable  
TextMorph read-only if it runs at your Computer.

Kind regards,

Daniel Taschik

- --
mail: [hidden email]
web: www.taschik.com
mobile: +49 162 7604429
skype: danieltaschik
icq: 106018852
jabber: [hidden email]

On 08.12.2008, at 13:30, Steve Wessels wrote:

> Look at the code used in eIRC
>
> - Steve
>
> On Dec 8, 2008, at 6:27 AM, Daniel Taschik <[hidden email]
> > wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Folks,
>
> I'm working on a project at my University and we develop a TetriNet  
> Client with Squeak. We have a small problem on how to make a  
> PluggableTextMorph read-only. The Morph shall display the log of the  
> internal Chat.
>
> Can anyone tell me how to force him to just display the text so that  
> nobody can write in it?
>
> Tanks a alot!
>
> Daniel Taschik
>
> - --
> mail: [hidden email]
> web: www.taschik.com
> mobile: +49 162 7604429
> skype: danieltaschik
> icq: 106018852
> jabber: [hidden email]
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkk9EqkACgkQo9checNKopQdhQCdGvNAboaf2OmnB9oD2VVHbKLf
> CuwAn2K+l9apdeieWvL5ETmeufIfO1/B
> =Kitn
> -----END PGP SIGNATURE-----
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk9gtQACgkQo9checNKopQFdwCgl0UBQ6JrJqPjyO5aBcBqOyMC
z9YAn2rfTANynydZeA6ZuX8c2utJHOcD
=G+hI
-----END PGP SIGNATURE-----
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to make a PluggableTextMorph read-only?

K. K. Subramaniam
In reply to this post by Daniel Taschik
On Monday 08 Dec 2008 5:57:21 pm Daniel Taschik wrote:
> I'm working on a project at my University and we develop a TetriNet
> Client with Squeak. We have a small problem on how to make a
> PluggableTextMorph read-only. The Morph shall display the log of the
> internal Chat.
>
> Can anyone tell me how to force him to just display the text so that
> nobody can write in it?
Have you considered Transcript for logs? .. Subbu
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: How to make a PluggableTextMorph read-only?

Steve Wessels
In reply to this post by Daniel Taschik
Daniel,

Actually, I know I solved this problem when I wrote eIRC for Squeak.  I don't have access to a computer system with Squeak development installed, so I cannot just quickly look up the code.

The most useful skill you can have when programming, in Squeak, Smalltalk, or any other development language, is what I've sometimes called "Code Archeology".  You should be able to take steps to read that source package whether it's compatible or not.  It's been some time since I've worked in Croquet, so I may be mistaken on some details, but you should be able to save your existing work in such a way that you can still install eIRC (if in fact it's not compatible), peruse the code for ideas, and then exit/quit your environment.  In this way you wouldn't change your working image.

Sorry, I'm not able to just directly answer your question.  My memory about the solution is that you will either find a protocol for the text pane, or it's controller, that can make it read-only, or you could simply subclass the pane and it's controller to add unique behavior like that.  I think the subclass technique is what I did because it gave me the added flexibilty of accepting some user keystrokes.  User keystrokes of up and down arrow and page keys are useful inputs, for example.  Copy and Paste key actions may also be desired.

I know I solved this kind of issue for eIRC several years ago, but can only describe the process or concept I used from memory.  

Cheers,
- Steve

On Dec 8, 2008, at 2:25 PM, Daniel Taschik <[hidden email]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Steve,

thanks for your quick response. But unfortunatly I can't install eIRC because it is probably to old. I am using Croquet 1.0.

Maybe you could explain me what the eIRC does to make his pluggable TextMorph read-only if it runs at your Computer.

Kind regards,

Daniel Taschik

- --
mail: [hidden email]
web: www.taschik.com
mobile: +49 162 7604429
skype: danieltaschik
icq: 106018852
jabber: [hidden email]

On 08.12.2008, at 13:30, Steve Wessels wrote:

Look at the code used in eIRC

- Steve

On Dec 8, 2008, at 6:27 AM, Daniel Taschik <[hidden email]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks,

I'm working on a project at my University and we develop a TetriNet Client with Squeak. We have a small problem on how to make a PluggableTextMorph read-only. The Morph shall display the log of the internal Chat.

Can anyone tell me how to force him to just display the text so that nobody can write in it?

Tanks a alot!

Daniel Taschik

- --
mail: [hidden email]
web: www.taschik.com
mobile: +49 162 7604429
skype: danieltaschik
icq: 106018852
jabber: [hidden email]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk9EqkACgkQo9checNKopQdhQCdGvNAboaf2OmnB9oD2VVHbKLf
CuwAn2K+l9apdeieWvL5ETmeufIfO1/B
=Kitn
-----END PGP SIGNATURE-----
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners




_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk9gtQACgkQo9checNKopQFdwCgl0UBQ6JrJqPjyO5aBcBqOyMC
z9YAn2rfTANynydZeA6ZuX8c2utJHOcD
=G+hI
-----END PGP SIGNATURE-----
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners



     
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners