From 33f4328c69a3a06e859b9180f5f509faec37aeee Mon Sep 17 00:00:00 2001 From: Deryck Hodge Date: Mon, 29 Aug 2005 22:04:11 +0000 Subject: r9763: Add the start bar as a widget from the desktop file. This is more portable to IE, though there are still some IE issues hanging around. deryck (This used to be commit a70b52bb04689de90ee5ec59109d669175b91c04) --- swat/scripting/client/desktop.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'swat/scripting') diff --git a/swat/scripting/client/desktop.js b/swat/scripting/client/desktop.js index b1c77dc613..6383e58bda 100644 --- a/swat/scripting/client/desktop.js +++ b/swat/scripting/client/desktop.js @@ -35,9 +35,8 @@ function docX() function docY() { var y; - // Less 25px to not cover the toolbar if (browser != "mshtml") { - y = window.innerHeight - 25; + y = window.innerHeight; } else { y = document.documentElement.clientHeight; } @@ -154,6 +153,23 @@ window.application.main = function() var doc = this.getClientWindow().getClientDocument(); doc.addEventListener("contextmenu", showContextMenu); doc.add(w); + + var bar = new QxMenuBar; + with (bar) { + setBottom(0); + setLeft(0); + setWidth("100%"); + setHeight(25); + setBackgroundColor("ThreeDFace"); + } + + var start = new QxMenuButton("START"); + start.addEventListener("click", function() { + startMenu(); + }); + bar.add(start); + + w.add(bar); } window.onresize = function() -- cgit