linuxdcpp-team team mailing list archive
-
linuxdcpp-team team
-
Mailing list archive
-
Message #06203
[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3091: fix a hidden grid row
------------------------------------------------------------
revno: 3091
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2012-10-27 16:47:37 +0200
message:
fix a hidden grid row
modified:
win32/GeneralPage.cpp
--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk
Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/GeneralPage.cpp'
--- win32/GeneralPage.cpp 2012-10-22 13:28:37 +0000
+++ win32/GeneralPage.cpp 2012-10-27 14:47:37 +0000
@@ -91,9 +91,16 @@
group = cur->addChild(GroupBox::Seed(T_("Away message (empty = no away message)")));
group->setHelpId(IDH_SETTINGS_GENERAL_DEFAULT_AWAY_MESSAGE);
+ auto cur2 = group->addChild(Grid::Seed(2, 1));
+ cur2->column(0).mode = GridInfo::FILL;
+
auto seed = WinUtil::Seeds::Dialog::textBox;
seed.style |= ES_MULTILINE | WS_VSCROLL | ES_WANTRETURN;
- items.emplace_back(group->addChild(seed), SettingsManager::DEFAULT_AWAY_MESSAGE, PropPage::T_STR);
+ items.emplace_back(cur2->addChild(seed), SettingsManager::DEFAULT_AWAY_MESSAGE, PropPage::T_STR);
+
+ auto box = cur2->addChild(Grid::Seed(1, 1))->addChild(CheckBox::Seed(T_("Add timestamp to the end of away messages")));
+ box->setHelpId(IDH_SETTINGS_GENERAL_AWAY_TIMESTAMP);
+ items.emplace_back(box, SettingsManager::AWAY_TIMESTAMP, PropPage::T_BOOL);
}
// dummy grid so that the check-box doesn't fill the whole row.
@@ -105,10 +112,6 @@
box->setHelpId(IDH_SETTINGS_GENERAL_AWAY_COMP_LOCK);
items.emplace_back(box, SettingsManager::AWAY_COMP_LOCK, PropPage::T_BOOL);
- box = cur->addChild(Grid::Seed(1, 1))->addChild(CheckBox::Seed(T_("Add timestamp to the end of away messages")));
- box->setHelpId(IDH_SETTINGS_GENERAL_AWAY_TIMESTAMP);
- items.emplace_back(box, SettingsManager::AWAY_TIMESTAMP, PropPage::T_BOOL);
-
{
auto idle = cur->addChild(Grid::Seed(1, 3));
idle->setHelpId(IDH_SETTINGS_GENERAL_AWAY_IDLE);