Insert a Control

    Usualy a SWT shell has one or more control. Here introcude how to insert a control.

1.Open SWT deisgner

    Use Ctrl +mouse middle button click a control can open SWT designer. Designer can be opened by the control  created by model .

2.Have a layout

    A SWT control container must has a layout, otherwise inserted control can not be visibile. The following video settted a GridLayout.

3.Isnert a Control

    At the design tools, click 'Desing(&1)' button open control list to insert a control.

 

 

 

Copyright ©  2007-2014 XWorker.org  版权所有

沪ICP备08000575号