setEnabled method

6 messages - 1019 views

Hi..

i m using setEnabled method to disable TextField widget...

but i m not been to see disabled textfield, its always remain enabled,, while i used setVisible(false) then textfield is shows correct result..

pls help me out... can u pls suggest me code to disable textfield??

thanks,

Hi,

Ho, yes, there is a bug there, the attribute 'enabled' do nothing on a TextField. It will be fixed in the next release. Thanks for reporting this.

HI,

same pblm with setFocus method, but i use setVisible method it is working..

one more thing, can u suggest how to put radiobuttons dynamically..

for ex. i want to show five radiobuttons sometime,, or say i want to display 2 radiobuttons sometime..

thx..

In my mind, there no setFocus() method on widget. To define a widget as focused widget, you can call requestFocus() method on the widget instance.

Is there any problem with requestFocus method ?

At present the only way to create dynamicly 1 or more RadioButton in a RadioGroup is to do it in java code by adding new RadionButton instances to the radioGroup.

Hi,

sorry i was talking about setFocusable method, not setFocus method..

so pls check whether there is bug in it or not...

thx,

Ok. The problem is that at present setFocusable change only the focusable attribute and do not unfocused the widget. It will be fixed in the next release.