[NEW_FEATURE] Global override style : to be continued.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@15 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
e34c53d63a
commit
de9aa761f9
@ -243,38 +243,48 @@ BOOL CALLBACK WordStyleDlg::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lPar
|
||||
|
||||
case IDC_GLOBAL_FG_CHECK :
|
||||
{
|
||||
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableFg = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case IDC_GLOBAL_BG_CHECK :
|
||||
printStr("touched!");
|
||||
case IDC_GLOBAL_BG_CHECK:
|
||||
{
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableBg = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case IDC_GLOBAL_FONT_CHECK :
|
||||
{
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableFont = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
case IDC_GLOBAL_FONTSIZE_CHECK :
|
||||
{
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableFontSize = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
case IDC_GLOBAL_BOLD_CHECK :
|
||||
{
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableBold = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
case IDC_GLOBAL_ITALIC_CHECK :
|
||||
{
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableItalic = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
case IDC_GLOBAL_UNDERLINE_CHECK :
|
||||
{
|
||||
|
||||
GlobalOverride & glo = (NppParameters::getInstance())->getGlobalOverrideStyle();
|
||||
glo.enableUnderLine = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, wParam, BM_GETCHECK, 0, 0));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -691,7 +691,7 @@
|
||||
</LexerStyles>
|
||||
<GlobalStyles>
|
||||
<!-- Attention : Don't modify the name of styleID="0" -->
|
||||
<WidgetStyle name="Global override" styleID="0" fgColor="000000" bgColor="000000" fontName="Courier New" fontStyle="0" fontSize="10" />
|
||||
<WidgetStyle name="Global override" styleID="0" fgColor="FFFFFFFF" bgColor="000000" fontName="Courier New" fontStyle="0" fontSize="10" />
|
||||
<WidgetStyle name="Default Style" styleID="32" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
|
||||
<WidgetStyle name="Indent guideline style" styleID="37" fgColor="C0C0C0" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="" />
|
||||
<WidgetStyle name="Brace highlight style" styleID="34" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="12" />
|
||||
|
Loading…
Reference in New Issue
Block a user