Feeling

              三人行,必有我師焉

             ::  :: 新隨筆 :: 聯系 ::  :: 管理 ::
            185 隨筆 :: 0 文章 :: 392 評論 :: 0 Trackbacks


          The idea is from DotnetMagic, I copied its style, but different implement methods. DotnetMagic uses shell self message circulation, but I use swt event listener. I want to implement the custom style menu for all platforms initially, but it's impossible. It has to use a lot of advanced OS funcitions. If I use pure swt public functions, I can't implement  some features. For example, if I click the menu, the window shell will be deactivated, I click window shell's titlebar, swt event manager doesn't send messages to me. I must use WND Message hook to deal these messages. So I have to add the feature into SWT Win32 Extension, but not a independent project.

          Some beautiful snapshots:


          Office 2003 Style Menu


          VS 2005 Style Menu


          Project Download: http://www.swtui.cn/downloads/org.eclipse.swt.win32.extension.zip
          JNLP Online Demo: http://www.swtui.cn/jws/example.jnlp

          If you don't have installed Java Runtime, you can access it via http://www.swtui.cn/downloads/org.eclipse.swt.win32.extension.example.independence_native.zip

          Eclipse Plugin Update Site URL: http://www.swtui.cn/update

           

          posted on 2008-04-02 11:25 三人行,必有我師焉 閱讀(3142) 評論(5)  編輯  收藏

          評論

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 11:58 BeanSoft
          It's time for IBM or Eclipse to develop a Skin system,like Swing's Look and Feel, or the Menu and Toolbar is still hard to customize, in fact you are doing c++ code, not java.... well, thanks ur hard work... to share with us...  回復  更多評論
            

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 12:10 三人行,必有我師焉
          Hmmm. I don't write any C++ code, just use swt win32 version to implement it, but it doesn't work in other platforms, until I implement a linux version, and this way is the socalled Eclipse spirit.

          In fact, IBM has its self look and feel, but it's commercial, I don't think that IBM will donate it to eclipse foundation.  回復  更多評論
            

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 15:04 Always BaNg.
          lookandfeel跟WND的class有關,codeProject上有一堆win32 lookand feel,將其注冊到swt也不是什么難事, swt下有一個類WNDCLASS。
          topmost?好像跟create window設個flag什么的。

          唉,還是windows API強大,什么效果都能容易。什么GTK,QT真TMD煩人。

          :) 為什么要在一個中文blog上寫英文呢?看的很費勁哩!
            回復  更多評論
            

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 16:07 三人行,必有我師焉
          本來準備弄個SWT Linux Extension的,結果實際操作以后發現很多高級功能都要GTK 2.10以后的版本,我裝的Ubuntu6.10才是GTK2.08,暈死。

          之所以在中文blog上用英文,一是為了練習英文,二是我懶得再寫英文文檔了,老外用搜索引擎直接搜這兒好了。blogjava的rank還是很高的,我才寫了1個小時,google就收錄了,可比我放在自己網站上宣傳好得多。  回復  更多評論
            

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 17:40 BeanSoft
          是呀 BlogJava 上內容 Google 收錄的很快!多虧多位像樓主這樣的原創作者,呵呵!  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          GitHub |  開源中國社區 |  maven倉庫 |  文件格式轉換 
          主站蜘蛛池模板: 宝丰县| 海晏县| 南郑县| 临洮县| 顺义区| 房山区| 墨玉县| 泗水县| 庆阳市| 新宁县| 阿勒泰市| 榆林市| 华池县| 松原市| 云南省| 天水市| 辽阳县| 郸城县| 湘乡市| 柳州市| 灵武市| 扬中市| 新蔡县| 天津市| 康定县| 大姚县| 湛江市| 旌德县| 博客| 凤翔县| 志丹县| 多伦县| 涿州市| 英德市| 泗洪县| 武功县| 芜湖县| 甘泉县| 祥云县| 嘉黎县| 西安市|