[Wgui-cvs] wgui/docs CalcTutorial.html,1.8,1.9
Status: Beta
Brought to you by:
greenwire
|
From: Rob W. <gre...@us...> - 2005-01-07 22:09:18
|
Update of /cvsroot/wgui/wgui/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26926/docs Modified Files: CalcTutorial.html Log Message: Work on the message box. Changed the single click message types to include the word SINGLE. Index: CalcTutorial.html =================================================================== RCS file: /cvsroot/wgui/wgui/docs/CalcTutorial.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** CalcTutorial.html 7 Apr 2004 15:14:38 -0000 1.8 --- CalcTutorial.html 7 Jan 2005 22:08:37 -0000 1.9 *************** *** 219,223 **** <p>To indicate to the message server that we want to get Button Click messages, we have to add the following line to the view constructor.</p> <pre><code> ! CMessageServer::Instance().RegisterMessageClient(this, CMessage::CTRL_LCLICK); </code></pre> <p>Then we have to add a HandleMessage() method to the view.</p> --- 219,223 ---- <p>To indicate to the message server that we want to get Button Click messages, we have to add the following line to the view constructor.</p> <pre><code> ! CMessageServer::Instance().RegisterMessageClient(this, CMessage::CTRL_SINGLELCLICK); </code></pre> <p>Then we have to add a HandleMessage() method to the view.</p> *************** *** 247,251 **** switch (pMessage->MessageType()) { ! case CMessage::CTRL_LCLICK: if (pMessage->Destination() == this) { --- 247,251 ---- switch (pMessage->MessageType()) { ! case CMessage::CTRL_SINGLELCLICK: if (pMessage->Destination() == this) { *************** *** 328,332 **** m_eCalcMode(MODE_NOP) { ! CMessageServer::Instance().RegisterMessageClient(this, CMessage::CTRL_LCLICK); m_pDisplay = new CEditBox(CRect(10, 10, 150, 30), this); m_pDisplay->SetWindowText("0"); --- 328,332 ---- m_eCalcMode(MODE_NOP) { ! CMessageServer::Instance().RegisterMessageClient(this, CMessage::CTRL_SINGLELCLICK); m_pDisplay = new CEditBox(CRect(10, 10, 150, 30), this); m_pDisplay->SetWindowText("0"); *************** *** 384,388 **** switch (pMessage->MessageType()) { ! case CMessage::CTRL_LCLICK: if (pMessage->Destination() == this) { --- 384,388 ---- switch (pMessage->MessageType()) { ! case CMessage::CTRL_SINGLELCLICK: if (pMessage->Destination() == this) { |