Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
defe4ad
)
ecere/gui/ListBox: AutoSize tweak to consider header width
author
Jerome St-Louis
<jerome@ecere.com>
Fri, 3 Aug 2012 08:46:24 +0000
(
04:46
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Fri, 3 Aug 2012 08:46:24 +0000
(
04:46
-0400)
ecere/src/gui/controls/ListBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/ListBox.ec
b/ecere/src/gui/controls/ListBox.ec
index
fb71824
..
e2cc5bc
100644
(file)
--- a/
ecere/src/gui/controls/ListBox.ec
+++ b/
ecere/src/gui/controls/ListBox.ec
@@
-170,6
+170,9
@@
public:
Font font = listBox.fontObject;
DataRow row;
int width = 0;
+ if(header)
+ display.FontExtent(boldFont, header, strlen(header), &width, null);
+ width += EXTRA_SPACE;
for(row = listBox.firstRow; row; row = row.GetNextRow())
{
ListBoxCell cell;