Make the text direction of search result window follow the direction of main edit zone
and the text direction of function list always LTR.
This commit is contained in:
parent
db4a6f5ec6
commit
edaa67db28
@ -6672,10 +6672,8 @@ void Notepad_plus::launchFunctionList()
|
||||
_pFuncList = new FunctionListPanel();
|
||||
_pFuncList->init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), &_pEditView);
|
||||
|
||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||
bool isRTL = pNativeSpeaker->isRTL();
|
||||
tTbData data = {0};
|
||||
_pFuncList->create(&data, isRTL);
|
||||
_pFuncList->create(&data);
|
||||
|
||||
::SendMessage(_pPublicInterface->getHSelf(), NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFuncList->getHSelf()));
|
||||
// define the default docking behaviour
|
||||
@ -6687,7 +6685,7 @@ void Notepad_plus::launchFunctionList()
|
||||
// in this case is DOCKABLE_DEMO_INDEX
|
||||
// In the case of Notepad++ internal function, it'll be the command ID which triggers this dialog
|
||||
data.dlgID = IDM_VIEW_FUNC_LIST;
|
||||
|
||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||
generic_string title_temp = pNativeSpeaker->getAttrNameStr(FL_PANELTITLE, FL_FUCTIONLISTROOTNODE, "PanelTitle");
|
||||
|
||||
static TCHAR title[32];
|
||||
|
@ -2360,11 +2360,8 @@ void FindReplaceDlg::findAllIn(InWhat op)
|
||||
_pFinder->init(_hInst, (*_ppEditView)->getHParent(), _ppEditView);
|
||||
_pFinder->setVolatiled(false);
|
||||
|
||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||
bool isRTL = pNativeSpeaker->isRTL();
|
||||
|
||||
bool isRTL = (*_ppEditView)->isTextDirectionRTL();
|
||||
tTbData data = {0};
|
||||
|
||||
_pFinder->create(&data, isRTL);
|
||||
::SendMessage(_hParent, NPPM_MODELESSDIALOG, MODELESSDIALOGREMOVE, reinterpret_cast<LPARAM>(_pFinder->getHSelf()));
|
||||
// define the default docking behaviour
|
||||
@ -2377,7 +2374,8 @@ void FindReplaceDlg::findAllIn(InWhat op)
|
||||
// the dlgDlg should be the index of funcItem where the current function pointer is
|
||||
// in this case is DOCKABLE_DEMO_INDEX
|
||||
data.dlgID = 0;
|
||||
|
||||
|
||||
NativeLangSpeaker *pNativeSpeaker = (NppParameters::getInstance()).getNativeLangSpeaker();
|
||||
generic_string text = pNativeSpeaker->getLocalizedStrFromID("find-result-caption", TEXT(""));
|
||||
|
||||
if (!text.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user