Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 90641 Details for
Bug 68062
Can't access all parameters in SWT control and custom control examples
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix
ControlExample_scroll_options_patch.txt (text/plain), 2.35 KB, created by
Markus Keller
on 2008-02-25 10:22:59 EST
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Markus Keller
Created:
2008-02-25 10:22:59 EST
Size:
2.35 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt.examples >Index: src/org/eclipse/swt/examples/controlexample/Tab.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/Tab.java,v >retrieving revision 1.76 >diff -u -r1.76 Tab.java >--- src/org/eclipse/swt/examples/controlexample/Tab.java 23 Jan 2008 18:55:56 -0000 1.76 >+++ src/org/eclipse/swt/examples/controlexample/Tab.java 25 Feb 2008 15:14:18 -0000 >@@ -15,6 +15,7 @@ > import org.eclipse.swt.graphics.*; > import org.eclipse.swt.widgets.*; > import org.eclipse.swt.layout.*; >+import org.eclipse.swt.custom.ScrolledComposite; > import org.eclipse.swt.events.*; > > /** >@@ -150,9 +151,13 @@ > * right half of each example tab. It consists of the > * "Style" group, the "Other" group and the "Size" group. > */ >- controlGroup = new Group (tabFolderPage, SWT.NONE); >+ ScrolledComposite scrolledComposite = new ScrolledComposite(tabFolderPage, SWT.H_SCROLL | SWT.V_SCROLL); >+ scrolledComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true)); >+ scrolledComposite.setExpandVertical(false); >+ scrolledComposite.setExpandHorizontal(false); >+ >+ controlGroup = new Group (scrolledComposite, SWT.NONE); > controlGroup.setLayout (new GridLayout (2, true)); >- controlGroup.setLayoutData (new GridData(SWT.FILL, SWT.FILL, false, false)); > controlGroup.setText (ControlExample.getResourceString("Parameters")); > > /* Create individual groups inside the "Control" group */ >@@ -208,6 +213,11 @@ > ltrButton.addSelectionListener (selectionListener); > defaultOrietationButton.addSelectionListener (selectionListener); > } >+ >+ scrolledComposite.setContent(controlGroup); >+ Point point = controlGroup.computeSize(SWT.DEFAULT, SWT.DEFAULT); >+ controlGroup.setSize(point); >+ scrolledComposite.setMinSize(point); > } > > /** >@@ -598,7 +608,10 @@ > void createListenersGroup () { > listenersGroup = new Group (tabFolderPage, SWT.NONE); > listenersGroup.setLayout (new GridLayout (3, false)); >- listenersGroup.setLayoutData (new GridData (SWT.FILL, SWT.FILL, true, true, 2, 1)); >+ GridData gd = new GridData (SWT.FILL, SWT.FILL, true, true, 2, 1); >+ listenersGroup.setLayoutData (gd); >+ gd.minimumHeight= 150; >+ gd.heightHint= 150; > listenersGroup.setText (ControlExample.getResourceString ("Listeners")); > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68062
: 90641 |
164097
|
164102