⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slide019.html

📁 《Big C++ 》Third Edition电子书和代码全集-Part1
💻 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='slide020.html'">
<h2><font color='#009999'>27.6 Layout Management (cont.)</font></h2>
<ul>
  <li><font size="+1">In wxWindows, use objects of the <tt>wxSizer</tt> class 
    or one of its derived classes (such as <tt>wxBoxSizer</tt>) to specify the 
    layout of user interface elements. </font></li>
  <li><font size="+1">These buttons would be lined up horizontally: 
    <blockquote> 
      <pre>wxBoxSizer* button_sizer = new wxBoxSizer(wxHORIZONTAL);
button_sizer-&gt;Add(hello_button);
button_sizer-&gt;Add(goodbye_button);</pre>
    </blockquote>
    </font></li>
  <li><font size="+1">A second sizer places the text control on top of the button 
    row. 
    <blockquote>
      <pre>wxBoxSizer* frame_sizer = new wxBoxSizer(wxVERTICAL);
frame_sizer-&gt;Add(text, 1, wxGROW);
frame_sizer-&gt;Add(button_sizer, 0, wxALIGN_CENTER);</pre>
    </blockquote></font></li>
	<blockquote><img src="images/button_frame.png"></blockquote>
</ul>
<hr>
<center><small>
	<a href='slide018.html'>prev</a>
	|<a href='slide001.html'>top</a>
	|<a href='slide020.html'>next</a>
</small></center>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -