Is it possible to resize the horizontal manager's width? I want to create two buttons in the horizontal arrangement, set the background border. I am using the following code for it. This is working fine but since there are only two buttons and the 320-width full screen is not captured, The setting limit is only for those two buttons background, so I could see the white space different from horizontal width in front and backward places. So I want to create a horizontal manager with 320 width, from which setting border width will be seen for the full width. Is it possible to resize the horizontal width of the manager?
XYEdges border color = new XYEdges (color black, color. Black, color. Black, color black); XYEdges noPadding = new XYEdges (2, 2, 2, 2); Horizontal field manager HzBtnFldManager = new horizontal field manager (horizontal field manager FIELD_HCENTER); CreateButton = New Custom Control ("Create", Buttonfield.FOCUSABLE | ButtonField.Conusclick | Buttonfield.FIELD_HCENTER, 83, 15); Cancel Button = New Custom Control ("Cancel", Buttonfield. Focusable | ButtonField. CONSUME_CLICK | Buttonfield.FIELD_HCENTER, 83, 15); HzBtnFldManager.add (createButton); HzBtnFldManager.add (cancelButton); Border BTNbarpaddingBorder = Borderfacture.Credit Simplister (Nopadding, BorderRocker, Border. STELIIID); HzBtnFldManager.setBorder (btnBarPaddingBorder); HzBtnFldManager.setBackground (BackgroundFactory.createSolidBackground (Color.GRAY)); This.setStatus (hzBtnFldManager);
Maybe try using the field.USE_ALL_WIDTH
style Horizontal Search Manager
?
Comments
Post a Comment