window

How do I store the window size between sessions in Qt?

I have a QMainWindow in a Qt application. When I close it I want it to store its current restore size (the size of the window when it is not maximized). This works well when I close the window in restore mode (that is, not maximized). But if I close the window if it is maximized, then next time i start the application and restore the app...

Popup Window similar to Modal Window

I need to open a popup Window to a cross domain content. I should not allow the user either to access or close the parent window, till i am done with Child window. The main issue with Modal window is that stops any asynchrnous process running on the main window. For example, timers and auto refresh wont be working in the parent window....

How do I handle the window close event (user clicking the 'X' button) in a Python Tkinter program?

How do I handle the window close event (user clicking the 'X' button) in a Python Tkinter program? ...

Transparent form on the desktop

Hi I want to create a c# application with multiple windows that are all transparent with some text on. The tricky part is making these forms sit on top of the desktop but under the desktop icons. Is this possible? ...

Visual Studio Freezing/TFS Window Might be off screen

I am using Visual Studio 2005 with Team Foundation Server. When I right click a file under the source control and choose "compare" VS appears to freeze until I hit escape. My guess is that the window that is supposed to be popping up is somewhere I can't get to. I tried minimizing all the windows that I can and it is nowhere to be fou...

How to change a Window Owner using its handle

I want to make a .NET Form as a TopMost Form for another external App (not .NET related, pure Win32) so it stays above that Win32App, but not the rest of the apps running. I Have the handle of the Win32App (provided by the Win32App itself), and I've tried Win32 SetParent() function, via P/Invoke in C#, but then my .NET Form gets confine...

Minimize a external application with Delphi

Is there a way to Minimize an external application that I don't have control over from with-in my Delphi application? for example notepad.exe, except the application I want to minimize will only ever have one instance. ...

How do you obtain Current Window Handle Count and Window Handle Limit in .NET?

I want to obtain the current number of window handles and the system-wide window handle limit in C#. How do I go about this? ...

How do you disable the CPU window in Delphi 7

When stepping a program in Delphi 7, the CPU window sometimes pops up and then steps through that instructions. I find this an annoyance as I wish to only step Pascal Code. Does anyone know how to disable this CPU pop-up? I would not be sorry if this window never ever shows. It did not happen on Delphi 5 which was my previous IDE t...

bring a console window to front in c#

How can I bring a console application window to front in C# (especially when running the Visual Studio debugger)? ...

How to close a .Net Form from its PreFilterMessage() ?

Hi, I'm filtering the messages that come to a form with PreFilterMessage like this: print("code sample"); public bool PreFilterMessage(ref Message m) { if (m.Msg == WM_KEYDOWN && (int)m.WParam == VK_ESCAPE) { this.Close(); return true; } return false; } print("code sample"); but the matter...

Could a website force the browser to go into fullscreen mode?

I want to run a psychological study for which participants have to look at large images. The experiment is done on the web and therefore in a browser window. Is it possible to tell the browser to go into fullscreen, for example on button press? I know there is the possibility to open a fixed-size popup window. Do you think this would b...

How can I list the methods of a JavaScript object in VS command window?

When debugging JavaScript in Visual Studio 2008 and I use the ? command in the command window to list a JavaScript object's members I always get that ellipses {...}. Example: >? Page_Validators {...} [0]: {object} [1]: {object} [2]: {object} [3]: {object} [4]: {object} [5]: {object} length: 6 I'm assuming...

What is the best way of scrolling the browser window for expanding elements?

What I want to do is scroll down the window when I expand elements in my page. The effect I am trying to achieve is like the Stack Overflow comments. If it expands beyond the page, it scrolls down to fit all the comments in the window. What is the best way of doing this? Edit: I am using JQuery. ...

Javascript: open new page in same window

Is there an easy way to modify this code so that the target URL opens in the SAME window? <a href="javascript:q=(document.location.href);void(open('http://example.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));"&gt;click here</a>`` ...

Window handle debugging in Winforms

I have a user that keeps getting this error. Is there a tool that does window handle counting that i can use to figure out why he keeps getting this error. System.ComponentModel.Win32Exception: Error creating window handle. at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp) at System.Windows.Forms.Control.CreateHa...

How does CurrentControlSet differ from ControlSet001 and ControlSet002?

In the windows registry, how does CurrentControlSet differ from ControlSet001 and ControlSet002? Which should be set when installing for all users? We are trying to add an environment variable for all users. Should we set: HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Envinronment\EnvToSet? ...

Window border width and height

I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring even when it was turned off and the mouse pointer not lining up to things with the same coordinates as itself I discovered that when creating a window the width and height parameters include the border. The program was rendering a 800x600 ...

Moving Silverlight 2 popup windows

We are using popup windows in a Silverlight 2 application; these can be moved in the standard way by clicking on the title bar and dragging. If the title bar is dragged out of site behind the browser chrome, the window can no longer be moved. We have users that consider this problematic and I was wondering if there might be some other ...

Calling a JNI modal dialog disables taskbar icon.

In a Java application (JRE 1.5.0_12) on Windows XP, I call a native method: public native int attachImage( ... ); ... which lives in a Visual C++ 6.0 .dll. It displays an application-modal window. Problem is, the application's tray icon doesn't respond to mouseclicks while this window has focus. This is an issue because when this wind...