Alinear Renglon

Post Reply
User avatar
VitalJavier
Posts: 242
Joined: Mon Jun 10, 2013 6:40 pm

Alinear Renglon

Post 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.
User avatar
karinha
Posts: 7885
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Contact:

Re: Alinear Renglon

Post 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.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Alinear Renglon

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply