From: Daniel J S. <dan...@ie...> - 2004-07-24 03:29:21
|
Ethan Merritt wrote: >I quite agree with you that the current setup has lots of problems. >I thought a bit about trying to introduce explicit code to control the >number of rows and columns. Then I looked at the code and shuddered. > Now I see what you are saying. There is code for the key all over "graphics.c". And I think I see why the "set key below" always causes space removed irregardless of the "bmargin" setting. It isn't conditioned the way "set key out" and "rmargin" is, ie for TOUT it's if (rmargin < 0) { <snip> /* adjust for outside key */ if (key->flag == KEY_AUTO_PLACEMENT && key->hpos == TOUT) { xright -= key_col_wth * key_cols; keybox.xl = xright + (int) (t->h_tic); } <snip> } else but for TUNDER, it's if (key->flag == KEY_AUTO_PLACEMENT) { if (key->vpos == TUNDER) { <snip> ybot += key_entry_height * key_rows + (int) ((t->v_char) * (ktitl_lines + 1)); ybot += (int)(key->height_fix * (t->v_char)); } else { <snip> } Dan |