ScrollBar

1 resposta
F

PessoALL,

Alguem sabe como colocar scroll bar em um StyledText no SWT??

[]'s

1 Resposta

F

PessoALL,

Nosso amigo google não postou msg aqui, mas ja me ajudou :D

Para quem interessar segue a solução.

public static void main(String[] args) {
      Display display = new Display ();
      Shell shell = new Shell (display);
      shell.setLayout(new FillLayout());
      StyledText b1 = new StyledText(shell, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL);;
      shell.open ();
      while (!shell.isDisposed ()) {
        if (!display.readAndDispatch ()) display.sleep ();
      }
      display.dispose ();
    }

[]'s

Criado 13 de fevereiro de 2004
Ultima resposta 13 de fev. de 2004
Respostas 1
Participantes 1