Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Resize TableColum within Table
Resize TableColum within Table [message #458851] Fri, 22 July 2005 18:37 Go to next message
Eclipse UserFriend
Originally posted by: jaguaralcon.hotmail.com

I'm created a form with Table ,this Table have to 3 TableColum but do not
resize ,someone might your hand whit this Code

gTelefono = new Table(this, SWT.BORDER| SWT.H_SCROLL |SWT.V_SCROLL);

//Se crean las columnas
TableColumn tcTelefono = new TableColumn(gTelefono, SWT.NONE);
TableColumn tcNumero = new TableColumn(gTelefono, SWT.NONE);
TableColumn tcExtencion = new TableColumn(gTelefono, SWT.NONE);

// se hace visible la cabecera y se establece los titulos de la cabecera
gTelefono.setHeaderVisible(true);
gTelefono.setLinesVisible(true);
tcTelefono.setText("Tipo");
tcNumero.setText("Numero");
tcExtencion.setText("Ext");

tcTelefono.setWidth(60);
tcNumero.setWidth(120);
tcExtencion.setWidth(60);
Re: Resize TableColum within Table [message #458883 is a reply to message #458851] Mon, 25 July 2005 15:02 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Are you saying that you want your TableColumns to resize when your Table
resizes? If so then see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet77.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup .

If this was not what you wanted then please follow up here, thanks.

Grant

"Jaime Quintana" <jaguaralcon@hotmail.com> wrote in message
news:ff3e7281dbeba6af4b63c86b3ce9790d$1@www.eclipse.org...
> I'm created a form with Table ,this Table have to 3 TableColum but do not
> resize ,someone might your hand whit this Code
>
> gTelefono = new Table(this, SWT.BORDER| SWT.H_SCROLL |SWT.V_SCROLL);
>
> //Se crean las columnas
> TableColumn tcTelefono = new TableColumn(gTelefono, SWT.NONE);
> TableColumn tcNumero = new TableColumn(gTelefono, SWT.NONE);
> TableColumn tcExtencion = new TableColumn(gTelefono, SWT.NONE);
>
> // se hace visible la cabecera y se establece los titulos de la cabecera
> gTelefono.setHeaderVisible(true);
> gTelefono.setLinesVisible(true);
> tcTelefono.setText("Tipo");
> tcNumero.setText("Numero");
> tcExtencion.setText("Ext");
>
> tcTelefono.setWidth(60);
> tcNumero.setWidth(120);
> tcExtencion.setWidth(60);
>
Previous Topic:quick question on CellEditors
Next Topic:Set table column width relative
Goto Forum:
  


Current Time: Thu Apr 25 08:34:16 GMT 2024

Powered by FUDForum. Page generated in 0.03358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top