跨平台的GUI設計

最近Eclipse的CDT出了2.1,加上想找一個跨平台的GUI Library,這樣就可以真正的Write Once, Run Everywhere,後來找到wxWindows,後來改名為wxWidgets(因為微軟去函要求),目前支援Win、Unix(wxGTK)、Mac(wxMac)還有OS/2,所以算是最完整的GUI Library,所以就測試看看。
在Win下,安裝比較麻煩,必須裝GCC,所以就要裝MinGW跟MSYS,祥細的安裝過程可以參考C++ GUI Programming on Windows 2000/XP。Win執行成果如下圖。
gui_win.jpg
至於Linux下,只要wxGTK安裝好,就可以了,Compiler參數可以參考wxWidgets的wxWiki。Linux執行成果如下圖。
gui_lix.jpg
至於如果快速的產生GUI,就等下次介紹wxGlade這套好工具。

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Archives

Powered by Movable Type 4.33-en

About this Entry

This page contains a single entry by philipz published on January 5, 2005 2:42 AM.

Find recent content on the main index or look in the archives to find all content.