Feeling

              三人行,必有我?guī)熝?/p>

             ::  :: 新隨筆 :: 聯(lián)系 ::  :: 管理 ::
            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

           


          評論

          # 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...  回復(fù)  更多評論
            

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 12:10 三人行,必有我?guī)熝?/a>
          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.  
          回復(fù)  更多評論
            

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

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

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

          # re: Add custom style menu into SWT Win32 Extension. 2008-04-02 16:07 三人行,必有我?guī)熝?/a>
          本來準(zhǔn)備弄個SWT Linux Extension的,結(jié)果實際操作以后發(fā)現(xiàn)很多高級功能都要GTK 2.10以后的版本,我裝的Ubuntu6.10才是GTK2.08,暈死。

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

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


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


          網(wǎng)站導(dǎo)航:
           
          GitHub |  開源中國社區(qū) |  maven倉庫 |  文件格式轉(zhuǎn)換 
          主站蜘蛛池模板: 白水县| 古蔺县| 乐平市| 凤山县| 门头沟区| 龙川县| 阳高县| 陕西省| 承德市| 平南县| 伊宁县| 运城市| 鄂尔多斯市| 托克托县| 景洪市| 印江| 伊川县| 施甸县| 平利县| 张家口市| 丹东市| 元朗区| 马龙县| 微山县| 沁源县| 神木县| 深圳市| 昔阳县| 合水县| 仙居县| 石泉县| 黑龙江省| 磐石市| 炉霍县| 嘉善县| 封丘县| 毕节市| 宜兰市| 彰化市| 陈巴尔虎旗| 翁源县|