Can anybody help me in adding controls on view
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   eclipse_programmer
Posted On:   Wednesday, November 21, 2007 05:33 AM

Hello, I want to add controls like button text box etc... on the view created by me. < I am able to create using following code, but gui is very bad... public void createPartControl(Composite parent) { GridData gridData = new GridData(); gridData.horizontalSpan = 4; gridData.verticalAlignment = GridData.END; gridData.grabExcessVerticalSpace = true; gridData.grabExcessHorizontalSpace = true; gridData.horizontalAlignment = GridData.END; gridData.verticalSpan=4; gridData.horizontalIndent=6; GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 10;    More>>

Hello,

I want to add controls like button text box etc...

on the view created by me. <

I am able to create using following code, but gui
is very bad...


public void createPartControl(Composite parent) {


GridData gridData = new GridData();

gridData.horizontalSpan = 4;

gridData.verticalAlignment = GridData.END;

gridData.grabExcessVerticalSpace = true;

gridData.grabExcessHorizontalSpace = true;

gridData.horizontalAlignment = GridData.END;

gridData.verticalSpan=4;

gridData.horizontalIndent=6;


GridLayout gridLayout = new GridLayout();

gridLayout.numColumns = 10;

gridLayout.horizontalSpacing=11;

gridLayout.marginHeight=80;

gridLayout.marginRight=40;

top = new Composite(parent, SWT.NONE);

top.setLayout(gridLayout);


button = new Button(top, SWT.NONE);

button.setText("Browse");

button.setLayoutData(gridData);

}


I want to add items on the view with scrollbar

And what is the way to add all those items..
Thank you..

   <<Less
About | Sitemap | Contact