Update of /cvsroot/wgui/wgui/tests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23997/tests
Modified Files:
TestView1.cpp
Log Message:
Converted CProgressBar to inherit from CRangeControl
Index: TestView1.cpp
===================================================================
RCS file: /cvsroot/wgui/wgui/tests/TestView1.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -C2 -d -r1.65 -r1.66
*** TestView1.cpp 2 Apr 2004 17:26:16 -0000 1.65
--- TestView1.cpp 4 May 2004 16:11:13 -0000 1.66
***************
*** 83,87 ****
m_pButtonCopyText = new wGui::CButton(ClientToScreen(wGui::CRect(30, 180, 160, 200)), this, "Copy Selected Text");
m_pProgressBar = new wGui::CProgress(ClientToScreen(wGui::CRect(20, 70, 210, 90)), this);
! m_pProgressBar->SetLimits(0, 50);
m_pBtnQuit = new wGui::CButton(ClientToScreen(wGui::CRect(525, 10, 600, 30)), this, "Quit");
m_pBtnWaitCursor = new wGui::CButton(ClientToScreen(wGui::CRect(500, 50, 600, 70)), this, "Wait Cursor");
--- 83,87 ----
m_pButtonCopyText = new wGui::CButton(ClientToScreen(wGui::CRect(30, 180, 160, 200)), this, "Copy Selected Text");
m_pProgressBar = new wGui::CProgress(ClientToScreen(wGui::CRect(20, 70, 210, 90)), this);
! m_pProgressBar->SetMaxLimit(50);
m_pBtnQuit = new wGui::CButton(ClientToScreen(wGui::CRect(525, 10, 600, 30)), this, "Quit");
m_pBtnWaitCursor = new wGui::CButton(ClientToScreen(wGui::CRect(500, 50, 600, 70)), this, "Wait Cursor");
***************
*** 248,252 ****
sprintf(buffer, "Count: %i", m_iClickCount);
m_pButton->SetWindowText(buffer);
! m_pProgressBar->SetProgress(m_iClickCount);
bHandled = true;
--- 248,252 ----
sprintf(buffer, "Count: %i", m_iClickCount);
m_pButton->SetWindowText(buffer);
! m_pProgressBar->SetValue(m_iClickCount);
bHandled = true;
***************
*** 352,356 ****
sprintf(buffer, "Count: %i", m_iClickCount);
m_pButton->SetWindowText(buffer);
! m_pProgressBar->SetProgress(m_iClickCount);
bHandled = true;
}
--- 352,356 ----
sprintf(buffer, "Count: %i", m_iClickCount);
m_pButton->SetWindowText(buffer);
! m_pProgressBar->SetValue(m_iClickCount);
bHandled = true;
}
|