From b978bfa096fdde06a7659838cf81ed4477777737 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期五, 27 五月 2022 18:10:38 +0800 Subject: [PATCH] change frameex to frame, and add func_key dialogbar --- MTerm2/MTerm2View.cpp | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/MTerm2/MTerm2View.cpp b/MTerm2/MTerm2View.cpp index 1b960d2..8e84d07 100644 --- a/MTerm2/MTerm2View.cpp +++ b/MTerm2/MTerm2View.cpp @@ -1192,8 +1192,8 @@ s1.Format(_T("LD db Clk %d %d %02X Scroll %d %d Total %d %d Row %d Col %d"), point.x, point.y, nFlags, scroll1.x, scroll1.y, tx, ty, nRow, nCol); m_pStatusBar->SetPaneText(6, s1); - m_pStatusBar->SetPaneBackgroundColor(6, RGB(255, 255, 0)); - m_pStatusBar->SetPaneTextColor(6, RGB(0, 0, 255)); +// m_pStatusBar->SetPaneBackgroundColor(6, RGB(255, 255, 0)); +// m_pStatusBar->SetPaneTextColor(6, RGB(0, 0, 255)); // m_pStatusBar->EnablePaneProgressBar(6); // m_pStatusBar->SetPaneProgress(6, 5); SysLog(s1); @@ -1535,17 +1535,17 @@ if (!pDoc->m_bOnline) { s1 = _T("绂荤嚎"); m_pStatusBar->SetPaneText(idxOnline, s1); - m_pStatusBar->SetPaneBackgroundColor(idxOnline); +// m_pStatusBar->SetPaneBackgroundColor(idxOnline); } else if (pDoc->m_bOnline) { if (pDoc->m_bSimulate) { s1 = _T("鍦ㄧ嚎(浠跨湡)"); m_pStatusBar->SetPaneText(2, s1); - m_pStatusBar->SetPaneBackgroundColor(idxOnline, OnlineColor); +// m_pStatusBar->SetPaneBackgroundColor(idxOnline, OnlineColor); }else{ s1 = _T("鍦ㄧ嚎"); m_pStatusBar->SetPaneText(2, s1); - m_pStatusBar->SetPaneBackgroundColor(idxOnline, OnlineColor); +// m_pStatusBar->SetPaneBackgroundColor(idxOnline, OnlineColor); } } } @@ -1553,20 +1553,20 @@ if (!pDoc->m_bOnline) { s1 = _T(""); m_pStatusBar->SetPaneText(idxRunning, s1); - m_pStatusBar->SetPaneBackgroundColor(idxRunning); - m_pStatusBar->SetPaneWidth(idxRunning, 0); +// m_pStatusBar->SetPaneBackgroundColor(idxRunning); +// m_pStatusBar->SetPaneWidth(idxRunning, 0); m_pStatusBar->SetPaneStyle(idxRunning, SBPS_DISABLED); }else if (!pDoc->m_bPlcRunning) { s1 = _T("PROG"); m_pStatusBar->SetPaneText(idxRunning, s1); - m_pStatusBar->SetPaneWidth(idxRunning, s1.GetLength()*8); - m_pStatusBar->SetPaneBackgroundColor(idxRunning, ProgColor); +// m_pStatusBar->SetPaneWidth(idxRunning, s1.GetLength()*8); +// m_pStatusBar->SetPaneBackgroundColor(idxRunning, ProgColor); }else { s1 = _T("RUN"); m_pStatusBar->SetPaneText(idxRunning, s1); - m_pStatusBar->SetPaneWidth(idxRunning, s1.GetLength() * 8); - m_pStatusBar->SetPaneBackgroundColor(idxRunning, RunningColor); +// m_pStatusBar->SetPaneWidth(idxRunning, s1.GetLength() * 8); +// m_pStatusBar->SetPaneBackgroundColor(idxRunning, RunningColor); } } if (nIndex == idxMonitor || nIndex == -1) { // 鐩戞帶 // @@ -1574,11 +1574,11 @@ if (!m_bMonitoring) { s1 = _T("[鐩戞帶鍋滄]"); m_pStatusBar->SetPaneText(idxMonitor, s1); - m_pStatusBar->SetPaneBackgroundColor(idxMonitor); +// m_pStatusBar->SetPaneBackgroundColor(idxMonitor); }else{ s1 = _T("[姝e湪鐩戞帶]"); m_pStatusBar->SetPaneText(idxMonitor, s1); - m_pStatusBar->SetPaneBackgroundColor(idxMonitor, MonitorColor); +// m_pStatusBar->SetPaneBackgroundColor(idxMonitor, MonitorColor); } } if (nIndex == idxAddress || nIndex == -1) { // 鍦板潃锛屾湰绔� @@ -1586,11 +1586,11 @@ if (!pDoc->m_bOnline) { s1 = _T("鏈珯"); m_pStatusBar->SetPaneText(idxAddress, s1); - m_pStatusBar->SetPaneBackgroundColor(idxMonitor); +// m_pStatusBar->SetPaneBackgroundColor(idxMonitor); }else { s1 = _T("鏈珯"); m_pStatusBar->SetPaneText(idxAddress, s1); - m_pStatusBar->SetPaneBackgroundColor(idxMonitor, AddressColor); +// m_pStatusBar->SetPaneBackgroundColor(idxMonitor, AddressColor); } } @@ -1659,12 +1659,12 @@ if (pDoc->m_bPlcRunning) { s1 = _T("杩愯"); m_pStatusBar->SetPaneText(3, s1); - m_pStatusBar->SetPaneTextColor(3, RGB(0, 0, 0)); +// m_pStatusBar->SetPaneTextColor(3, RGB(0, 0, 0)); } else { s1 = _T("鍋滄"); m_pStatusBar->SetPaneText(3, s1); - m_pStatusBar->SetPaneTextColor(3, RGB(0, 0, 0)); +// m_pStatusBar->SetPaneTextColor(3, RGB(0, 0, 0)); } s1.Format(_T("PCmdUI %d %d"), pCmdUI->m_nID, pCmdUI->m_nIndex); DbgLog(s1); -- Gitblit v1.9.1