Page 1 of 1

Alinear Renglon

Posted: Sat Sep 07, 2024 7:25 pm
by VitalJavier
Saludos a todos
Alguien sabe como puedo alinear en un renglon en xBrowse
Que quede centrado.

Image

Si ven la imagen, esta alineado hacia arriba, lo que quiero es que quede centrado.

Saludos.

Re: Alinear Renglon

Posted: Sat Sep 07, 2024 8:20 pm
by karinha
Intenta si:

Code: Select all | Expand

   oBrw:aCols[7]:nDataStrAlign:=2  // columna 7
 
ó

Code: Select all | Expand

   oBrw:aCols[nro_col]:nHeadStrAlign := 0, 1 ó 2
 
Regards, saludos.

Re: Alinear Renglon

Posted: Mon Sep 09, 2024 3:44 am
by nageswaragunupudi
By default XBrowse always vertically centers the text.
Small sample to test:

Code: Select all | Expand

XBROWSER "STATES.DBF" SETUP oBrw:nRowHeight := 100
Result:
Image

In your browse, the text is top aligned. That means you specified top-alignment somewhere in your program. Please recheck your program if you set any values to col:nDataStrAlign.