|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
I can only seem to find reference on the window size in pixels only. How would I do the window at 100% both ways or fullscreen?
This is for a standalone application. Anybody have any clues?
__________________
~ Joe Penn |
|
#2
|
||||
|
||||
|
Ok, think I found a way to accomplish this using a javascript function. Once I test this, if it works, I will post it for others to see.......
![]() |
|
#3
|
||||
|
||||
|
Ok, my solution works. Using DOM in a javascript function, I can capture the clients monitor resolution and create the window chrome or GUI in the correct size as returned by the users monitor resolution. Below is my solution....
Code:
<!--// The XUL main GUI file, or window (partial, but enough for testing)--> <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin" type="text/css"?> <?xml-stylesheet href="chrome://fpro/skin" type="text/css"?> <!DOCTYPE window SYSTEM "chrome://fpro/locale/xfly.dtd" > <window id="win-main" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" title="&appWindow.label;" width=" " height=" " onload="windowSize()"> <script type="application/x-javascript" src="chrome://xfly/content/fpro.js" /> Code:
<!--// The XUL javaScript tie-in file (this is just the function from my file -->
function windowSize(){
winElement1=document.getElementById('win-main');
winElement1.setAttribute('width', screen.width);
winElement1.setAttribute('height', screen.height);
}
Well, there it is for others to use and(or) hack up if needed.... ![]() |
|
#4
|
||||
|
||||
|
Ok, only inconsistency when using the above is the window itself isn't maximized - it is in size, as size of monitor resolution, but the window itself isn't actually maximized. I am going to explore using a system command to see if I can accomplish this, I will update this thread is this works...
![]() |
|
#5
|
|||
|
|||
|
If you have chrome privs, you can use URL
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Window Widget size in percentage or fullscreen? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|