Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.FormLayout


   
    // setting INHERIT_FORCE here would make the BG of a text box be
    // this parent's BG (on Win7 at least)
    //parentComposite.setBackgroundMode(SWT.INHERIT_FORCE);

    parentComposite.setLayout(new FormLayout());
    control = parentComposite;

    setControl(control);
  }
View Full Code Here


      }
      if (Arrays.binarySearch(styles, "search") >= 0) {
        style |= SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL;
        if (Constants.isWindows) {
          cBubble = new Composite(createOn, SWT.NONE);
          cBubble.setLayout(new FormLayout());
        }
      }
    }
   
    if ((style & SWT.WRAP) == 0 && (style & SWT.MULTI) > 0) {
View Full Code Here

    cParent = parent == null ? skin.getShell()
        : (Composite) parent.getControl();

    cArea = cParent;
    cArea = new Canvas(cParent, SWT.NO_BACKGROUND);
    cArea.setLayout(new FormLayout());

    setControl(cArea);

    if (cParent.isVisible()) {
      init();
View Full Code Here

        dispose();
        imageResizerListener.imageResized(result);
      }
    });

    FormLayout layout = new FormLayout();
    layout.marginBottom = 5;
    layout.marginTop = 5;
    layout.marginLeft = 5;
    layout.marginRight = 5;
View Full Code Here

        }
      }
    });

    install_area_parent = new Composite(shell, SWT.NONE);
    install_area_parent.setLayout(new FormLayout());
    install_area_parent.setVisible(false);

    install_area = new Composite(install_area_parent, SWT.NONE);

    FormLayout formLayout = new FormLayout();
    formLayout.marginWidth = formLayout.marginHeight = 0;
    shell.setLayout(formLayout);
    FormData fd;

    fd = Utils.getFilledFormData();
View Full Code Here

    if (Constants.isWindows) {
      // Windows SWT Bug: button BG won't draw properly without INHERIT FORCE
      // create a intermediate composite with forced inherit and put button
      // in that.
      createOn = new Composite(createOn, SWT.NONE);
      createOn.setLayout(new FormLayout());
      createOn.setBackgroundMode(SWT.INHERIT_FORCE);
      c = createOn;
    }

    button = new Button(createOn, SWT.PUSH);
View Full Code Here

    initialize(
      Composite parent_composite )
    { 
      composite = new Composite( parent_composite, SWT.NULL );
     
      FormLayout layout = new FormLayout();
     
      layout.marginTop  = 4;
      layout.marginLeft  = 4;
      layout.marginRight  = 4;
      layout.marginBottom  = 4;
View Full Code Here

   
      parent_composite  = _parent_composite;

      composite = new Composite( parent_composite, SWT.NULL );
     
      FormLayout layout = new FormLayout();
     
      layout.marginTop  = 4;
      layout.marginLeft  = 4;
      layout.marginRight  = 4;
      layout.marginBottom  = 4;
View Full Code Here

    shell = new Shell(display,type);           
   
    shell.setSize(250,150);
    Utils.setShellIcon(shell);
   
    FormLayout layout = new FormLayout();
    layout.marginHeight = 0;
    layout.marginWidth= 0;
    try {
      layout.spacing = 0;
    } catch (NoSuchFieldError e) {
View Full Code Here

    int popupHeight = 170;

    shell = new Shell(display,SWT.ON_TOP);
    Utils.setShellIcon(shell);

    FormLayout layout = new FormLayout();
    layout.marginHeight = 0; layout.marginWidth = 0;
    try {
      layout.spacing = 0;
    } catch (NoSuchFieldError e) {
      /* Ignore for Pre 3.0 SWT.. */
 
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.FormLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.