mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: ArrayCtrl: Clik on header with Alt copies individual width, GetColumnWidths
git-svn-id: svn://ultimatepp.org/upp/trunk@6204 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
52d5ca1d2f
commit
03680d92b1
5 changed files with 21 additions and 1 deletions
|
|
@ -2554,6 +2554,16 @@ ArrayCtrl& ArrayCtrl::ColumnWidths(const char *s)
|
|||
return *this;
|
||||
}
|
||||
|
||||
String ArrayCtrl::GetColumnWidths()
|
||||
{
|
||||
String text;
|
||||
for(int i = 0; i < header.GetCount(); i++)
|
||||
text << Format(i ? " %d" : "%d",
|
||||
header.GetMode() == HeaderCtrl::SCROLL ? (int)header[i].GetRatio()
|
||||
: header.GetTabWidth(i));
|
||||
return text;
|
||||
}
|
||||
|
||||
ArrayCtrl& ArrayCtrl::OddRowColor(Color paper, Color ink)
|
||||
{
|
||||
oddpaper = paper;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue