Mercurial > dwindows
comparison win/dw.c @ 448:e81af9e60697
When a box is a groupbox, we need to add the groupbox border to both the
used size and used padding size... so the sub-box ratios are calculated
correctly.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 09 Jun 2003 08:14:59 +0000 |
parents | 5a0779561d0f |
children | 787cc1e27897 |
comparison
equal
deleted
inserted
replaced
447:5a0779561d0f | 448:e81af9e60697 |
---|---|
857 dw_font_text_extents(thisbox->grouphwnd, 0, text, NULL, &textheight); | 857 dw_font_text_extents(thisbox->grouphwnd, 0, text, NULL, &textheight); |
858 dw_free(text); | 858 dw_free(text); |
859 } | 859 } |
860 | 860 |
861 (*usedx) += 6; | 861 (*usedx) += 6; |
862 (*usedpadx) += 6; | |
862 (*usedy) += textheight ? (3 + textheight) : 6; | 863 (*usedy) += textheight ? (3 + textheight) : 6; |
864 (*usedpady) += textheight ? (3 + textheight) : 6; | |
863 } | 865 } |
864 | 866 |
865 for(z=0;z<thisbox->count;z++) | 867 for(z=0;z<thisbox->count;z++) |
866 { | 868 { |
867 if(thisbox->items[z].type == TYPEBOX) | 869 if(thisbox->items[z].type == TYPEBOX) |