Mr. Jose
- Code: Select all Expand view RUN
Como puedo hacer que se ajuste al ancho de la columna de texto, en este caso para que se vea bien toda la cabecera.
I am surprised that in your case the header does not look good. But it should automatically look good.
Hope you are testing with FWH1905 or later.
I tried to reproduce the problem at my end, but it is working correctly.
This is the test program I tried here.
- Code: Select all Expand view RUN
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
local oDlg, oBrw, oFont
USE CUSTOMER VIA "DBFCDX"
FW_CdxCreate()
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-14
DEFINE DIALOG oDlg SIZE 600,400 PIXEL TRUEPIXEL FONT oFont TITLE FWVERSION
@ 40,40 XBROWSE oBrw SIZE -60,-40 PIXEL OF oDlg ;
DATASOURCE "CUSTOMER" ;
COLUMNS "STRZERO(ID,4)","FIRST","LAST" ;
HEADERS "CODIGO" ;
CELL LINES NOBORDER ;
FOOTERS AUTOSORT
WITH OBJECT oBrw
:CreateFromCode()
END
ACTIVATE DIALOG oDlg CENTERED
RELEASE FONT oFont
return nil
Here the header appears correctly with automatic calculation of column widths.
How can you help me to reproduce the problem?
We try our best to ensure that XBrowse should work as expected without any extra code by the programmer for colsizes, alignments, number formats, etc.