From c14d526b2a6a5b1556ba07db87d78f51f4a7341c Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 26 Oct 2009 01:14:12 +0000 Subject: [PATCH] [NEW] Add SQL ESC symbol '\'. [NEW] Add new Notepad++ logo in About box. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@554 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Notepad_plus.rc | 19 +++++++++--------- .../src/ScitillaComponent/ScintillaEditView.h | 1 + .../src/WinControls/AboutDlg/AboutDlg.cpp | 4 ++-- PowerEditor/src/icons/chameleon.ico | Bin 3774 -> 5694 bytes scintilla/src/LexUser.cxx | 3 ++- 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/PowerEditor/src/Notepad_plus.rc b/PowerEditor/src/Notepad_plus.rc index 40c94c68..417106ac 100644 --- a/PowerEditor/src/Notepad_plus.rc +++ b/PowerEditor/src/Notepad_plus.rc @@ -598,17 +598,18 @@ IDD_ABOUTBOX DIALOGEX 0, 0, 271, 240 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_BORDER | WS_SYSMENU FONT 8, TEXT("MS Shell Dlg"), 0, 0, 0x1 BEGIN - LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,60,16,65,11 - LTEXT UNICODE_ANSI_MODE, IDC_STATIC,130,16,65,11 - GROUPBOX "GNU General Public Licence",IDC_STATIC,19,75,231,131,BS_CENTER - DEFPUSHBUTTON "Ok",IDOK,106,215,50,14,BS_FLAT,WS_EX_STATICEDGE - LTEXT "Author :",IDC_STATIC,21,41,31,8 - LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,41,70,8 - LTEXT "Home Page :",IDC_STATIC,21,54,47,8 - LTEXT "http://notepad-plus.sourceforge.net/",IDC_HOME_ADDR,78,54,126,8 - EDITTEXT IDC_LICENCE_EDIT,31,99,209,96,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL EDITTEXT IDC_BUILD_DATETIME,150,2,150,10, ES_READONLY | NOT WS_BORDER CONTROL "",IDI_CHAMELEON,"Static",SS_OWNERDRAW,20,5,64,64 + LTEXT NOTEPAD_PLUS_VERSION, IDC_STATIC,70,20,65,11 + LTEXT UNICODE_ANSI_MODE, IDC_STATIC,140,20,65,11 + LTEXT "Author :",IDC_STATIC,21,45,31,8 + LTEXT "Notepad++ team",IDC_AUTHOR_NAME,78,45,70,8 + LTEXT "Home Page :",IDC_STATIC,21,59,47,8 + LTEXT "http://notepad-plus.sourceforge.net/",IDC_HOME_ADDR,78,59,126,8 + GROUPBOX "GNU General Public Licence",IDC_STATIC,19,75,231,131,BS_CENTER + DEFPUSHBUTTON "Ok",IDOK,106,215,50,14,BS_FLAT,WS_EX_STATICEDGE + // IDC_LICENCE_EDIT should be the last line, don't know why + EDITTEXT IDC_LICENCE_EDIT,31,99,209,96,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL END IDD_GOLINE DIALOGEX 26, 41, 261, 88 diff --git a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h index afaccdfb..7a456f49 100644 --- a/PowerEditor/src/ScitillaComponent/ScintillaEditView.h +++ b/PowerEditor/src/ScitillaComponent/ScintillaEditView.h @@ -684,6 +684,7 @@ protected: void setSqlLexer() { + execute(SCI_SETPROPERTY, (WPARAM)"sql.backslash.escapes", (LPARAM)"1"); setLexer(SCLEX_SQL, L_SQL, LIST_0); }; diff --git a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp index 660fbcfd..b27c5e8f 100644 --- a/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp +++ b/PowerEditor/src/WinControls/AboutDlg/AboutDlg.cpp @@ -70,9 +70,9 @@ BOOL CALLBACK AboutDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam) case WM_DRAWITEM : { - HICON hIcon = (HICON)::LoadImage(_hInst, MAKEINTRESOURCE(IDI_CHAMELEON), IMAGE_ICON, 48, 48, LR_DEFAULTSIZE); + HICON hIcon = (HICON)::LoadImage(_hInst, MAKEINTRESOURCE(IDI_CHAMELEON), IMAGE_ICON, 64, 64, LR_DEFAULTSIZE); DRAWITEMSTRUCT *pdis = (DRAWITEMSTRUCT *)lParam; - ::DrawIconEx(pdis->hDC, 0, 0, hIcon, 48, 48, 0, NULL, DI_NORMAL); + ::DrawIconEx(pdis->hDC, 0, 0, hIcon, 64, 64, 0, NULL, DI_NORMAL); return TRUE; } diff --git a/PowerEditor/src/icons/chameleon.ico b/PowerEditor/src/icons/chameleon.ico index 3a38506a65b4d3a63cbd388a0a017ec9f26b8e07..636c56c5e3df9d130e51081fe93c0ee3b3d2826e 100644 GIT binary patch literal 5694 zcmeHLdt6LuAOB7#WoM=>Vj0OLnsgB&O1e<1Qt7@+W7;iQYA92(R8-2kpT2ls&=9XEa86Si#zJBJ5o3VejSu%Ybnh zGs_C*zP1=Gvcovh1Wfj^gSD89&$h*c&`FpWHW@Zy_LvlI2V2P$Oj+y*ON(hRws(Pp zT>zZy17POt0SD))80`^=@m_(L=oI4oWXXBTHU zdwmEGPfxf8xMJ!o7kGR$6V6U^Fw@T$e*S(46p0Ze3c}Pl7kJ0cfK!|&+!H5C(}vf{=u{h*}nd=p`|TiCaS2GQ`Kn!zIZT zAFgtT$A+13N%4i}Mqf-{H3#nNg7ER$KzMEOh0l%v_+|vcXUi-E?4E^BHwGbeiwGa> z3qsK0PvDvU8T>QC5uP;{ajEf$+m(R8@8)Cno)CzB2tn`<3lMyKF2s2Y2}X)Vdp?77 ze*{8K&O>P7e9{(T{^?l6pCq|m7GwUog@~>A6tPz#5K$6~$m_9)`FT0kl&-}3TX6`T zvlXt(zCd);dPwH&!*c15Nc_AE$;-=;8ea*wEg=5aLR!8WkvCHieR~a-+}@6;+B8JhZ^Y+~8Hj7zixsU0Ajvt0 z&|_s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