|
Re: Change text to read only [message #534322 is a reply to message #534307] |
Tue, 18 May 2010 16:23 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
That would be a hack...
text.addVerifyListener(new VerifyListener(){
public void verifyText(VerifyEvent e){
e.doit=false;
}
});
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
|
Re: Change text to read only [message #534740 is a reply to message #534718] |
Thu, 20 May 2010 08:28 |
Vijay Raj Messages: 608 Registered: July 2009 |
Senior Member |
|
|
Quote: | geejay wrote:
> Hello peoples
>
> Is there any way to change an existing Text widget to read only, when it
> was constructed without the SWT.READ_ONLY flag?
You can use text.setEditable(false) API for making the text widget to
read only.
|
Yes that would be a better way,i missed it.
---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds