Browse sizes

This forum is for eXpress++ general support.
Post Reply
Message
Author
omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Browse sizes

#1 Post by omni »

Roger,

We have a screen with 3 browses formatted to specific sizes..has worked in version 1.9 perfectly for years. When viewed in 2.0 the cell sizes are so small you cannot see anything. No change other than version.
Is there a modification to the way it handles the cell sizes in 2.0. (your build 263)
(guess we can change the sizes if version 2.0 but then we have to check all our browses)


LOCAL aBrowPres := ;
{ { XBP_PP_COL_HA_FGCLR, GRA_CLR_WHITE }, /* Header FG Color
*/ ;
{ XBP_PP_COL_HA_BGCLR, GRA_CLR_DARKGRAY }, /* Header BG Color
*/ ;
{ XBP_PP_COL_DA_ROWSEPARATOR, XBPCOL_SEP_DOTTED }, /* Row Sep
*/ ;
{ XBP_PP_COL_DA_COLSEPARATOR, XBPCOL_SEP_DOTTED }, /* Col Sep
*/ ;
{ XBP_PP_COL_DA_FGCLR, GRA_CLR_BLACK }, /* Row FG Color
*/ ;
{ XBP_PP_COL_DA_BGCLR, GRA_CLR_WHITE }, /* Row BG Color
*/ ;
{ XBP_PP_COL_DA_ROWHEIGHT, 10 }, /* Row Height
*/ ;
{ XBP_PP_COL_HA_HEIGHT, 10 }, /* Header Height
*/ ;
{ XBP_PP_HILITE_FGCLR, GRA_CLR_BLACK }, /* Hilite FG color
*/ ;
{ XBP_PP_HILITE_BGCLR, GRA_CLR_YELLOW }, /* Hilite BG color
*/ ;
{ XBP_PP_COL_FA_FGCLR, GRA_CLR_WHITE }, /* Footer FG Color
*/ ;
{ XBP_PP_COL_FA_BGCLR, GRA_CLR_DARKGRAY }, /* Footer BG Color
*/ ;
{ XBP_PP_COL_FA_HEIGHT, 10 } /* Footer Height
*/ ;
}


Fred
Omni

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Browse sizes

#2 Post by rdonnay »

Change your ROW HEIGHT and HEADER HEIGHT to -1.
This will automatically adjust the height to the font.

Alternately, change it to a higher value than 10.
The eXpress train is coming - and it has more cars.

reganc
Posts: 259
Joined: Thu Jan 28, 2010 3:08 am
Location: Hersham, Surrey, UK
Contact:

Re: Browse sizes

#3 Post by reganc »

omni wrote:Roger,

We have a screen with 3 browses formatted to specific sizes..has worked in version 1.9 perfectly for years. When viewed in 2.0 the cell sizes are so small you cannot see anything. No change other than version.
Is there a modification to the way it handles the cell sizes in 2.0. (your build 263)
(guess we can change the sizes if version 2.0 but then we have to check all our browses)


LOCAL aBrowPres := ;
{ { XBP_PP_COL_HA_FGCLR, GRA_CLR_WHITE }, /* Header FG Color
*/ ;
{ XBP_PP_COL_HA_BGCLR, GRA_CLR_DARKGRAY }, /* Header BG Color
*/ ;
{ XBP_PP_COL_DA_ROWSEPARATOR, XBPCOL_SEP_DOTTED }, /* Row Sep
*/ ;
{ XBP_PP_COL_DA_COLSEPARATOR, XBPCOL_SEP_DOTTED }, /* Col Sep
*/ ;
{ XBP_PP_COL_DA_FGCLR, GRA_CLR_BLACK }, /* Row FG Color
*/ ;
{ XBP_PP_COL_DA_BGCLR, GRA_CLR_WHITE }, /* Row BG Color
*/ ;
{ XBP_PP_COL_DA_ROWHEIGHT, 10 }, /* Row Height
*/ ;
{ XBP_PP_COL_HA_HEIGHT, 10 }, /* Header Height
*/ ;
{ XBP_PP_HILITE_FGCLR, GRA_CLR_BLACK }, /* Hilite FG color
*/ ;
{ XBP_PP_HILITE_BGCLR, GRA_CLR_YELLOW }, /* Hilite BG color
*/ ;
{ XBP_PP_COL_FA_FGCLR, GRA_CLR_WHITE }, /* Footer FG Color
*/ ;
{ XBP_PP_COL_FA_BGCLR, GRA_CLR_DARKGRAY }, /* Footer BG Color
*/ ;
{ XBP_PP_COL_FA_HEIGHT, 10 } /* Footer Height
*/ ;
}


Fred
Omni
I believe Rogers suggestion is probably best. I found that the rows in 1.9 were actually rendered 6 pixels bigger than they should have been. It played havoc with me trying to find the exact sizing.
Regan Cawkwell
Real Business Applications Ltd
http://www.rbauk.com

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Browse sizes

#4 Post by omni »

Thanks, the minus 1 was perfect.


Fred

Post Reply