| How to get a Group to fill a scrollable composite [message #432644] | 
Wed, 24 March 2004 13:46  | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I have a view that contains a ScrollableComposite (sc in the code  
snippets below).  The scrollable composite contains a group and I would  
like to have the group fill the available area.  Here is what I am doing: 
 
            Composite control = buildGroupControl( ); 
            control.layout( true ); 
            control.setSize(control.computeSize(SWT.DEFAULT, SWT.DEFAULT)); 
            sc.setContent( control ); 
            GridData ggd = new GridData( GridData.FILL_BOTH ); 
            control.setLayoutData( ggd ); 
 
However, this does not get the control to fill the area of the view.   
When the ScrolledComposite is created I do 
 
        sc.setBounds( parent.getShell().getClientArea() );
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.02695 seconds