mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
automatic select sql tab
При шелчке правой кнопкой мыши по закладке с результатами запроса, активируется sql окно с запросом.
This commit is contained in:
parent
f441ebdb8d
commit
99f2683371
1 changed files with 21 additions and 0 deletions
|
|
@ -4229,6 +4229,27 @@ void frmQuery::OnNotebookOutpaneTabRDown(wxAuiNotebookEvent &event) {
|
|||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (wxDynamicCast(outputPane->GetPage(curpage), ctlSQLResult))
|
||||
{
|
||||
ctlSQLResult* c = wxDynamicCast(outputPane->GetPage(curpage), ctlSQLResult);
|
||||
int len = MAX_RESULT_COUNT;
|
||||
for (int i = 0; i < len; i++)
|
||||
if (ctlSQL[i] != NULL && c == ctlSQL[i])
|
||||
{
|
||||
ctlSQLResult *sqlRes = ctlSQL[i];
|
||||
ctlSQLBox *box= ctlSBox[i];
|
||||
int querypage= sqlQueryBook->GetPageIndex(box);
|
||||
if (querypage >= 0) {
|
||||
sqlQueryBook->SetSelection(querypage);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
void frmQuery::OnSqlBookTabRDown (wxAuiNotebookEvent &event) {
|
||||
size_t curpage = sqlQueryBook->GetSelection();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue