How can I increase RowHeight of TWBrowse ?

How can I increase RowHeight of TWBrowse ?

Postby Milan Mehta » Fri Oct 28, 2005 2:25 pm

Dear All,

How can I increase RowHeight of TWBrowse ?

How can I define Font to be used in TWBrowse ?

TIA
Milan.
Milan Mehta
 
Posts: 115
Joined: Mon Oct 17, 2005 4:42 am
Location: India

Re: How can I increase RowHeight of TWBrowse ?

Postby Enrico Maria Giordano » Fri Oct 28, 2005 4:33 pm

1) You have to increase the font.

2) Use the FONT clause.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby DanielPuente » Fri Oct 28, 2005 8:12 pm

Milan:

DEFINE FONT oFont NAME "ARIAL" SIZE 0,-9 DEFINE FONT oFont1 NAME "ARIAL" SIZE 0,-9 BOLD
DEFINE FONT oFont5 NAME "ARIAL" SIZE 0,-12 BOLD

You can:

-Define a font to use with the browse:

REDEFINE LISTBOX oBrwMov fields ID 999 OF oDlg ;
ALIAS (cALIAS) FONT oFont;
COLOR CLR_BLACK, CLR_WHITE UPDATE ON RIGHT CLICK RMENU(oDlg);
ON DBLCLICK IF(oBrwMov:nColAct > 0,oBrwMov:Edit(oBrwMov:nColAct,.t.),)

-Define another font for a specific column:

oBrwMov:bFont:={|nRow,nCol,nStyleLine| IF((nStyleLine==1.or.nStyleLine==0).and.(nCol==5.or.ncol==6.or.ncol==7),oFont5:hFont,;
IF(nStyleLine==2,oFont5:hFont,)) }

-Use diferent height of headers, rows or footers:

oBrwMov:nHeaderHeight:= 32
oBrwMov:nFooterHeight:= 25
oBrwMov:nLineHeight:= 16

And more... Read the header of wbrowse.prg

Regards,
Daniel Puente
Mar del Plata, Argentina
danielpuente@speedy.com.ar
puenteda@hotmail.com
DanielPuente
 
Posts: 108
Joined: Sun Oct 09, 2005 6:12 pm
Location: Mar del Plata - Argentina

Postby Enrico Maria Giordano » Fri Oct 28, 2005 8:23 pm

FWH standard TWBrowse does not support bFont, nHeaderHeight, nFooterHeight or nLineHeight.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby DanielPuente » Fri Oct 28, 2005 9:28 pm

Enrico/Milan:

The examples are for Hernan Ceccarelli's wbrowse class.

Regards,
Daniel Puente
Mar del Plata, Argentina
danielpuente@speedy.com.ar
puenteda@hotmail.com
DanielPuente
 
Posts: 108
Joined: Sun Oct 09, 2005 6:12 pm
Location: Mar del Plata - Argentina


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 32 guests