<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[PHP-GTK: Splash窗口例子]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 07 Oct 2010 03:07:22 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<br/><div class="code">　　&lt;?php<br/>　　class splash &#123;<br/>　　 var $gui = null;<br/>　　 var $times = null;<br/>　　 function splash() &#123;<br/>　　 $this-&gt;gui = array(); // 初始化<br/>　　 $this-&gt;times = 0;<br/>　　 &#125;<br/>　　 /**<br/>　　 * 运行主程序<br/>　　 */<br/>　　 function run() &#123;<br/>　　 $this-&gt;gui&#91;&#039;splash&#039;&#93; = &amp;new GtkWindow(GTK_WINDOW_POPUP);<br/>　　 $this-&gt;gui&#91;&#039;splash&#039;&#93;-&gt;set_position(GTK_WIN_POS_CENTER);<br/>　　 $this-&gt;gui&#91;&#039;splash&#039;&#93;-&gt;set_usize(365, 221);<br/>　　 $this-&gt;gui&#91;&#039;vbox&#039;&#93; = &amp;new GtkVbox(false, 0);<br/>　　 // load pixmap<br/>　　 list($pixmap, $mask) = Gdk::pixmap_create_from_xpm($this-&gt;gui&#91;&#039;splash&#039;&#93;-&gt;window, null, &#039;splash.xpm&#039;);<br/>　　 $splash = &amp;new GtkPixmap($pixmap, $mask);<br/>　　 <br/>　　 // add the image to the box<br/>　　 $this-&gt;gui&#91;&#039;vbox&#039;&#93;-&gt;add($splash);<br/>　　 <br/>　　 // load loading label<br/>　　 $this-&gt;gui&#91;&#039;loading&#039;&#93; = &amp;new GtkLabel();<br/>　　 // add the loading label to the box<br/>　　 $this-&gt;gui&#91;&#039;vbox&#039;&#93;-&gt;add($this-&gt;gui&#91;&#039;loading&#039;&#93;);<br/>　　 // add the box to the window<br/>　　 $this-&gt;gui&#91;&#039;splash&#039;&#93;-&gt;add($this-&gt;gui&#91;&#039;vbox&#039;&#93;);<br/>　　 $this-&gt;gui&#91;&#039;splash&#039;&#93;-&gt;show_all();<br/>　　 $this-&gt;loading();<br/>　　 Gtk::main();<br/>　　 &#125;<br/>　　 <br/>　　 /**<br/>　　 * Loging ...<br/>　　 */<br/>　　 function loading() &#123;<br/>　　 $this-&gt;times ++;<br/>　　 $this-&gt;gui&#91;&#039;loading&#039;&#93;-&gt;set_text(&#039;Loading .&#039; . str_repeat(&#039;.&#039;, $this-&gt;times));<br/>　　 // 刷新屏幕<br/>　　 while (gtk::events_pending()) gtk::main_iteration();<br/>　　 $loadingid = Gtk::timeout_add(1000, array(&amp;$this, &#039;loading&#039;));<br/>　　 // 运行4次退出<br/>　　 if($this-&gt;times &gt; 4) &#123;<br/>　　 Gtk::main_quit();<br/>　　 Gtk::timeout_remove($loadingid);<br/>　　 &#125;<br/>　　 &#125;<br/>　　&#125;<br/>　　$splash = &amp;new splash();<br/>　　$splash-&gt;run();<br/>　　?&gt;</div>
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP-GTK: Splash窗口例子]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>