📄 slide034.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='slide035.html'">
<h2><font color='#009999'>27.9 Dialogs (cont.)</font></h2>
<ul>
<li><font size="+1">Another convenient dialog is the text entry dialog that
asks the user to supply a single line of text.
<blockquote>
<pre>wxTextEntryDialog* dialog = new wxTextEntryDialog(this,
"What is your name?";
dialog->ShowModal();
string name = dialog->GetValue().c_str();
dialog->Destroy();</pre>
</blockquote>
<P><blockquote><img src="images/Dialog2.png"></blockquote></font></li>
<li><font size="+1">The <tt>GetValue</tt> function returns a <tt>wxString</tt>.
That class also has a <tt>c_str</tt> function to convert to a C string.</font></li>
</ul>
<hr>
<center><small>
<a href='slide033.html'>prev</a>
|<a href='slide001.html'>top</a>
|<a href='slide035.html'>next</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -