📄 slide014.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="blendTrans(Duration=2)" http-equiv="Page-Enter">
<title>Big C++: Chptr. 27 -- Graphical User Interfaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Copyright" content="2005 John Wiley & Sons">
<meta name="Author" content="Kurt Schmidt">
</head>
<body>
<div onclick="document.location='slide015.html'">
<h2><font color='#009999'>27.5 Event Handling</font></h2>
<ul>
<li><font size="+1">We will now attach actions to the menu items.</font></li>
<li><font size="+1">Define a function for each action.
<blockquote>
<pre>void EventFrame::OnSayHello(wxCommandEvent& event)
{
text->AppendText("Hello, World!\n");
} </pre>
</blockquote>
</font></li>
<li><font size="+1">We want this function to run whenever the program user selects
the menu option.</font></li>
<li><font size="+1">All event handler functions have a parameter that describes
the triggering event.</font></li>
<li><font size="+1">You must declare the function this way or get a bewildering
error message (note that the parameter is not used in the function).</font></li>
</ul>
<hr>
<center><small>
<a href='slide013.html'>prev</a>
|<a href='slide001.html'>top</a>
|<a href='slide015.html'>next</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -