bonjour,
je viens de creer un wizard et ma page contient plusieurs champs texte( 18 en tt ) qui s'aligne verticalement les uns apres les autres .Mon probleme c'est que jarrive pas a voir les champs qui depasse la fenetre!! il me faut un scroll verticale
jai essayé un ScrolledComposite mais il mefface tt les champs, il maffiche juste un wizard vide!! voila un bout de mon programme
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 public void createControl(Composite parent) { //composite= new ScrolledComposite(parent,SWT.V_SCROLL); composite = new Composite(parent, SWT.V_SCROLL); composite.setLayout(new GridLayout(2, true)); GridLayout layout = new GridLayout(); GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); layout.verticalSpacing=15; composite.setLayout(layout); layout.numColumns =2; layout.marginTop=10; layout.horizontalSpacing =200; final Button dir=new Button(composite,SWT.RADIO); dir.setText("Grammaire direct"); final Button ext=new Button(composite,SWT.RADIO); ext.setText("Grammaire externe"); //il ya 17 autre label crée apres celui la Label label = new Label(composite, SWT.NORMAL); label.setText("Version "); final Text text = new Text(composite, SWT.HIDE_SELECTION| SWT.BORDER); gridData.horizontalIndent = -240; text.setLayoutData(gridData);
merci d'avance
Partager