window

Shouldn't window.screen.width/height correspond to actual screen width/height?

Toying around with the WebKit browser in the new Kindle 3G, I noticed that window.screen.width and window.screen.height don't reflect the actual screen dimensions. The physical screen (or rather, paper) dimensions are 800 x 600. I get: 800 x 506 in landscape mode 600 x 706 in portrait mode But interestingly, both Chrome and Safari (w...

RibbonWindow transparent fonts

I create RibbonWindow with Ribbon toolbar. When I deploy my app and start it, all fonts in all nested controls dont shows. When I insert Ribbon toolbar in simple Window class, fonts shows, but toolbar work not correctly. What I need do to solve this problem? ...

window.onbeforeunload support in Firefox

Hi guys, I am using window.onbeforeunload in my javascript. This works perfectly in IE but is not triggered in Firefox. I checked on different links in stackoverflow.... In it I read that window.onbeforeunload is not supported by firefox. Is this true? If yes, can you please tell me a different way to call app.deleteAccount(key) on cl...

How do I get the real usable resolution

Hello, with Toolkit.getDefaultToolkit().getScreenSize() i do geht the screen size. But usually this isn't the available size i have for my own program, because on the mac there is a on top an menubar and a on bottom an iconbar. Windows does have an iconbar. So how do i get the real available space? ...

Extra Space when Air Application is Maximized

I have an air desktop app im working on, and i have a custom chrome used for the title bar and such. However, when i maximize the application, theres always some space above the applications as if i were using the standard system chrome. And i can tell because i can just see the title bar of an app behind it, but none of that applicatio...

How do you open a WPF window in its own thread, then close it?

I am trying to give some user entertainment, and show a "please wait" window, with Marquee, during the loading of a separate complex Window. I am attempting to do this by loading the Window in a new thread, like this: Public Function ShowPleaseWait() As System.Threading.Thread Dim PleaseWait As New System.Threading.Thread(...

Take a screenshot of the active window in mono

Hi, is there a way to take a screenshot of the active window using mono under Linux ? Thanks in advance Mike ...

WindowStyle = "None" + ResizeMode = "NoResize" = problem

problem is when i set my windowstyle to none and change resizemode to no resize, and run it, the height and width is bigger at runtime ...

Accessing windows applications controls from Linux

Hello everyone, I'm currently using Linux as my main OS and I run some Windows applications via Wine. Let say I'm running Notepad under Wine for example purposes. Is there a way I can access the text entered in notepad from Linux ? (Java, C, C++, C#/mono). Language doesn't matter Thanks in advance ...

Find the window of an element inside an iframe

Is there a cross browser method of returning the window object of an element whether it be in an iframe. This does the job for me but I don't know how well supported it is or if jQuery has a solution. var edoc = elem.ownerDocument.defaultView || elem.document.parentWindow; ...

I want qt window to resize proportional

Just as the title said, when I resize the window, if I make it widen , I want the window's height resize proportional to make the window has the same ratio. I just do the logic in paintEvent, but it doesn't work fine, can some guys have any solution? I don't think do resizing in resizeEvent is a great way, the best result is that window...

Top level Layered window problem in minimize/restore animation

Hi, Many application are using multi-top-level windows. One of the good example is for layered window: if application need a real transparent control, the best way under MS windows is to use layered window(win32 programming, no WPF). But Layered Window must be top-level window. The problem happens during you restore a minimized applicat...

.NET WPF Window FadeIn and FadeOut Animation

Hi All Below is code snippets of a window FadeIn and FadeOut animation: // Create the fade in storyboard fadeInStoryboard = new Storyboard(); fadeInStoryboard.Completed += new EventHandler(fadeInStoryboard_Completed); DoubleAnimation fadeInAnimation = new DoubleAnimation(0.0, 1.0, new Duration(TimeSpan.FromSeconds(0.30))); Storyboard.S...

How can I open a Windows CMD window for Perl and run a command?

Is there a way I can open a new cmd window and pass a variable and once completed close that window? I have found some info but not enough that I can get it to work. system('start "List Perl files" dir c:/dfd/dfdf.pl /B'); Opens window but does not run script. ...

How do I set a Xul window background image? Or, how to add a caption over a image?

I have a window in Xul, and I want to put a background image on it. I found nothing about the z-order, and the background-image and z-index in css is not working for the window.. any idea? In the following test, the image is showing, but not as background. The image starts after the last caption. My xul file: <?xml version="1.0"?> <?...

Use dialog to select a folder path?

I want to list files of folder. So, I just want to get the folder path. Is there a way to using a dialog window to get the folder path? ...

How can I close a Windows CMD window after I run a Perl program?

Is there a way to close a cmd window when a task is complete and also tell how many are already open? system( qq{ start "List Perl files" perl c:/perlscripts/new_spider.pl $new_href } ) ...

Firefox Open a new tab instead of a pop window?

I found that in recent version of Firefox, there was add a setting called "Open new windows in a new tab instead". When I keep it on, all the pop windows(Using javascript "window.open" function opened) opened in a new tab, which I realy need opened in a pop window(With settings like "menubar=no" and etc.). Some normal links with "target...

Javascript: persist window object refrence?

My javascript code open some windows trough: var win = window.open(); I store the win refernce in an array with all the other opened windows. Everything works fine, until the opener is refreshed. So what i'd like to achive is to get back all the references to the opened windows when the "master" window is loaded. To realize this i...

Detect opened windows/tabs in Firefox

I have an application window that displays a button. On button click, a new tab is opened with window.open javascript function and later I would like to be able to detect if that link is opened or not and if it is, I need to close that window. Can this be done in Firefox ? Thanks. ...