Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Any way of changing the Style of a Text Component at runtime ?

You can't change the style of SWT components after they are created.
The only thing you can do is dispose the Text and create a new one using 
the new style.
You can, however, make a Text be read-only after it is created by using 
setEditable(false).

Carolyn




"Vikram Kumar" <vikram17june@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx
09/21/2006 06:44 AM
Please respond to
"Eclipse Platform SWT component developers list." 
<platform-swt-dev@xxxxxxxxxxx>


To
platform-swt-dev@xxxxxxxxxxx
cc

Subject
[platform-swt-dev] Any way of changing the Style of a Text      Component 
at runtime ?






Hi All,
Wanted to know that is there any way of changing the Style of a Text 
Component at runtime ? I can only set the style while creating the 
component 
Text(Composite parent, int style) 
Is there any way , I could change the style of this text component at 
runtime ?
Thanks in advance,
Vikram_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top