Task #3528

Tables, more accurate column widths

Ajouté par Matthieu Decorde il y a presque 2 ans.

Statut:New Début:06/12/2023
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:UI Temps passé: -
Version cible:TXM 0.8.4

Description

Currently the tables column width is computed using the characters length of the title and content * font height * factor

Solution

Use one of the SWT width compute method (to be tested) :
  • Point p = label.computeSize( SWT.DEFAULT, SWT.DEFAULT );
  • GC gc = new GC; Point size = gc.textExtent("Hellooooooooooooooooooooo");

Formats disponibles : Atom PDF