.getTextBox().setReadOnly(true); hope that help you。 On Monday, February 20, 2012 1:01:17 PM UTC+8, Craig Mitchell wrote: > > Hi, > > A DateBox can be set to setEnabled(false), however, it does not have a > setReadOnly(true). And calling dateBox.getTextBox().setReadOnly(true) > does not work. > > This is annoying, as browsers do nasty things to the text color when > you disable the field (which CSS doesn't seem to be able to override). > > Does anyone has a nice solution to having a disabled or read only > DateBox, that can have any text colour? > > Thanks. > > PS: As a work around, I have a DateBox and a TextBox. When I want to > disabled the DateBox, I just hide it and show the read only TextBox, > copying in the the value across like this > myTextBox.setValue(myDateDateBox.getTextBox().getValue()); >
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/jIWFfJflKScJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
