mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=9900
This commit is contained in:
parent
1e6e086b04
commit
cff3b0e63a
|
@ -3822,3 +3822,12 @@ Rom 13 Apr 2006
|
|||
|
||||
clientgui/
|
||||
BOINCGUIApp.cpp
|
||||
|
||||
Charlie 14 Apr 2006
|
||||
- Mac: OnShow() is not implemented in wxMac-2.6.2, so move code from
|
||||
CMainFrame::OnShow() into new method CMainFrame::GetWindowDimensions().
|
||||
Call GetWindowDimensions() from CMainFrame::OnShow() and also from
|
||||
Mac-only method CMainFrame::Show().
|
||||
|
||||
clientgui/
|
||||
MainFrame.cpp, .h
|
||||
|
|
|
@ -1500,9 +1500,19 @@ void CMainFrame::OnClose(wxCloseEvent& event) {
|
|||
|
||||
void CMainFrame::OnShow(wxShowEvent& event) {
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnShow - Function Begin"));
|
||||
|
||||
if (event.GetShow())
|
||||
GetWindowDimensions();
|
||||
|
||||
event.Skip();
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnShow - Function End"));
|
||||
}
|
||||
|
||||
|
||||
void CMainFrame::GetWindowDimensions() {
|
||||
static bool bFirstTime = true;
|
||||
|
||||
if (bFirstTime && event.GetShow()) {
|
||||
if (bFirstTime) {
|
||||
bFirstTime = false;
|
||||
|
||||
wxString strBaseConfigLocation = wxString(wxT("/"));
|
||||
|
@ -1564,9 +1574,6 @@ void CMainFrame::OnShow(wxShowEvent& event) {
|
|||
Maximize(bWindowMaximized);
|
||||
#endif
|
||||
}
|
||||
|
||||
event.Skip();
|
||||
wxLogTrace(wxT("Function Start/End"), wxT("CMainFrame::OnShow - Function End"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -2148,6 +2155,7 @@ bool CMainFrame::Show(bool show) {
|
|||
GetCurrentProcess(&psn);
|
||||
if (show) {
|
||||
SetFrontProcess(&psn); // Shows process if hidden
|
||||
GetWindowDimensions();
|
||||
} else
|
||||
if (IsProcessVisible(&psn))
|
||||
ShowHideProcess(&psn, false);
|
||||
|
|
|
@ -88,6 +88,7 @@ public:
|
|||
|
||||
void OnClose( wxCloseEvent& event );
|
||||
void OnShow( wxShowEvent& event );
|
||||
void GetWindowDimensions();
|
||||
|
||||
void OnRefreshState( wxTimerEvent& event );
|
||||
void OnFrameRender( wxTimerEvent& event );
|
||||
|
|
Loading…
Reference in New Issue