Update Scene Switcher Layout

Removed the long header strings above the title/scene choosers, they most
likely would not fit in all translations. As a result of this, the scenes
column can be compressed down, leaving more room for window titles.
Obsolete strings removed from en.txt.

Contains two fixes by HomeWorld: A tooltip when hovering over too long
titles in the list control, and the placeholder text over the window
title/scene combo boxes.
master
Eric Bataille 2015-03-05 21:50:52 +01:00
parent 840489cf81
commit 0116e54931
3 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,3 @@
Settings.MainWndTitle="Window title to check for:"
Settings.MainWndScene="Scene to switch to on window title:"
Settings.WindowTitle="Window Title"
Settings.Scene="Scene"
Settings.SetToggleHotkey="Set a hotkey to toggle Scene Switcher:"

View File

@ -40,6 +40,15 @@ HWND SceneSwitcherSettings::CreatePane(HWND parentHwnd)
{
hwnd = CreateDialogParam(thePlugin->hinstDll, MAKEINTRESOURCE(IDD_SETTINGS_SCENESW),
parentHwnd, (DLGPROC)DialogProc, (LPARAM)this);
//EM_SETCUEBANNER
HWND hwndAppList = GetDlgItem(hwnd, IDC_APPLIST);
HWND hwndMainScn = GetDlgItem(hwnd, IDC_MAINSCN);
ComboBox_SetCueBannerText(hwndMainScn, PluginStr("Settings.Scene"));
ComboBox_SetCueBannerText(hwndAppList, PluginStr("Settings.WindowTitle"));
return hwnd;
}
@ -115,16 +124,16 @@ void SceneSwitcherSettings::MsgInitDialog()
HWND hwndCurrent = GetWindow(GetDesktopWindow(), GW_CHILD); // The top child of the desktop
// let's fill the listcontrol
SendMessage(hwndWSMap, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);
SendMessage(hwndWSMap, LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT | LVS_EX_LABELTIP, LVS_EX_FULLROWSELECT | LVS_EX_LABELTIP);
LVCOLUMN col1;
col1.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
col1.fmt = LVCFMT_RIGHT | LVCFMT_FIXED_WIDTH;
col1.cx = 307;
col1.cx = 204+205;
col1.pszText = (LPWSTR)PluginStr("Settings.WindowTitle");
LVCOLUMN col2;
col2.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH;
col2.fmt = LVCFMT_LEFT | LVCFMT_FIXED_WIDTH;
col2.cx = 307;
col2.cx = 205;
col2.pszText = (LPWSTR)PluginStr("Settings.Scene");
SendMessage(hwndWSMap, LVM_INSERTCOLUMN, 0, (LPARAM) (LPLVCOLUMN) &col1);
SendMessage(hwndWSMap, LVM_INSERTCOLUMN, 1, (LPARAM) (LPLVCOLUMN) &col2);

Binary file not shown.