Re: Focus handling on custom controls

2013-11-21 Thread Werner Lehmann
Interesting idea with those textfield insets. I have noticed that the FX2 combobox may not do this right because the cursor can be moved behind the combobox button. I'll give it a shot. Would still be nice to see how this would be done properly... Werner On 20.11.2013 13:57, Scott Palmer

Focus handling on custom controls

2013-11-20 Thread Werner Lehmann
Hi, I made a custom control and am trying to get the focus handling right. This is a textfield with some buttons on the right hand side, e.g. an ellipsis button: http://i.imgur.com/naPzK1W.png The control skin basically is an hbox with a textfield and a few stackpanes as its children. The

Re: Focus handling on custom controls

2013-11-20 Thread Scott Palmer
I did this by putting a TextField and a button in a region, and positioning the button manually in the layout method to be just inside the right edge of the TextField. Simple manipulation of the TextField's insets in the CSS prevents the text from going under the button. I set the button so