Page 1 of 1

Browse sizes

Posted: Mon Aug 06, 2018 7:03 am
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

Re: Browse sizes

Posted: Mon Aug 06, 2018 7:40 am
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.

Re: Browse sizes

Posted: Wed Aug 08, 2018 12:47 am
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.

Re: Browse sizes

Posted: Wed Aug 08, 2018 7:16 am
by omni
Thanks, the minus 1 was perfect.


Fred