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...  回復  更多評論
            

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

          # 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強大,什么效果都能容易。什么GTK,QT真TMD煩人。

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

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

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

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


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


          網(wǎng)站導航:
           
          GitHub |  開源中國社區(qū) |  maven倉庫 |  文件格式轉(zhuǎn)換 
          主站蜘蛛池模板: 九江县| 澳门| 醴陵市| 青州市| 崇阳县| 南京市| 桃园市| 贵阳市| 南和县| 邹平县| 康乐县| 吉木乃县| 云浮市| 边坝县| 类乌齐县| 拉孜县| 长顺县| 来凤县| 通江县| 盐源县| 获嘉县| 黄浦区| 通州区| 四川省| 金平| 东安县| 磐安县| 陕西省| 新邵县| 搜索| 轮台县| 团风县| 武山县| 常熟市| 防城港市| 丰原市| 平定县| 台安县| 南乐县| 陆河县| 剑川县|