PDA

View Full Version : Desktop 2.0 module ---> Flash Calculator



franckxx
19 Dec 2007, 12:43 PM
Hi,

: new version (now in Plugin, same great stuff by Ytorres)...

I've make a small calculator with flash today, i use the plugin made by rkrishna_1975 from this post (http://extjs.com/forum/showthread.php?t=20799)

Sorry it's Flash calculator, i'm newbie with Extjs and Javascript but i learn...

This add'on is easy to install module.

http://carrouget.com/fichiers/calc.png

[U]Demo Link (Big thx to YTorres)
http://extjs.keliglia.com

Installation :

Just unzip this file (http://carrouget.com/fichiers/Calculator window.zip) into root folder of Desktop 2.0 by MXRacer.

If you want modify this calculator, i provide "Sources" for U in this Zip file (http://carrouget.com/fichiers/Construction files.zip).

After Unzip, you must see plugins/calc-window/js/calc-window.js and calculator.swf

Edit "default.php" or "index.php" and add these lines :


<script type="text/javascript" src="plugins/calc-window/calc-window/js/calc-window.js"></script>

After :


<!-- MODULES -->
<script type="text/javascript" src="source/modules/layout-window/js/layout-window.js"></script>


And edit "DesktopConfig.js" :


new MyDesktop.DisplayConf(),
new Plugin.CalcWindow(), //----------------------- add this
new Plugin.DeskKregator()


finish by this line :


'startmenu': [
'layout-win',
'docs-menu',
'grid-win',
'tab-win',
'bogus-menu',
'comm-menu',
'utilitaires-menu',
'calc-win' //----------------------- add this


EDIT : just choose an icon to add into desktop.css and calc-windows.js

Byebye... :D

Ytorres
19 Dec 2007, 1:04 PM
Yeah !
Very nice work ! even if it is flash ^^
Thanks to share it :)

gaetan
25 Jan 2008, 10:03 AM
Great, but not working if an another app is already rendered in desktop.
Launch first desk-kregator and then the caculator.
Pc keyboard is still working, but any click on the calculator keyboard doestn' make the work.

Wil1113
25 Jan 2008, 5:45 PM
Very nice, but where is the credit o Jonas Rask for the images?