window

How to close parent window on child window open using window.open()

Using javascript "window.close()" method after opening new window using "window.open", it serve the problem i.e. but it will ask a confirmation message to user whether he really wants to close the window or not... if user selects yes then the parent window will close and if not then he will remain on the same window and new window will n...

WPF window class destruction

I create a window like this: if (someCondition) { MyWindow wnd = new MyWindow(); wnd.Owner = this; wnd.ShowDialog(); } I want MyWindow's destructor to be called at the closing curly bracket, but it doesn't. Do I need to call something like delete/destroy for MyWindow's destructor to be called? ...

WPF: How do I use EventSetters with a Window Style?

I have styled a window to replace the standard Chrome and I want to handle the Activated and Deactivated events using EventSetters. I get an error "...'Activated' must be a RoutedEvent registered..." with this: <EventSetter Event="Activated" Handler="Window_Activated"/> However, this works fine in the same style. <EventSetter Ev...

javascript to launch only ONE window for a Java applet with a given URL

I need a javascript solution to launch only one window, with a Java Applet in it, for a given URL. I found a solution posted here on Stack Overflow - here: http://stackoverflow.com/questions/528671/javascript-window-open-only-if-the-window-does-not-already-exist But it doesn't seem to work .. I get Error: launchApplication.winrefs is ...

(Windows API) WM_PAINT Mouse problems.

Hello, I created a window with the following flags to overlay a d3d application: WS_EX_TOPMOST | WS_EX_COMPOSITED | WS_EX_TRANSPARENT | WS_EX_LAYERED I proceeded with colorkeying the window for transperacy and all worked well. However once I began drawing on it using GDI an unforeseen problem occurred: For some reason the mouse events (...

Changing the position of AIR-window (in AS3)?

I created a simple transparent app for Adobe AIR in Flash. It has not chrome, so now I need to make it draggable. How could this be done? Thanks! ...

AS3 window class which can hold components

I need to create a "popup window" in AS3, which can contain things like textboxes and datagrids and stuff like that. I have searched thoroughly, and have been unable to find such a component or class. Why did they remove the AS2 window in as3? That would have been perfect for this. The closest thing I could find was http://fatal-except...

How do I find the window handle for a running process?

I am trying to get the handle of a window from a process. Now, that process shows a splash screen, so, if i try ProcessInstance.MainWindowHandle all I get is the handle of that processes main window, that is the splash screen. How can I find the window I want? Maybe if I could get a list of windows that process has I could pick the one ...

Immediate window execution in design mode asp.net

As far I know this is not supported for asp.net projects. It's quite handy for testing static/shared functions. Does anybody have any info if this will be available in future versions? Or if there are any alternative ways to test your functions in design mode? ...

Custom NSWindow setAlphaValue and makeKeyAndOrderFront

Hi, I have a custom window (matt gemells Transparent Window class) and I need to change the window's alpha value to achieve a fade in/out effect and perform a "makeKeyAndOrderFront:". However this does not work. What I did: I imported the header: #import "TransparentWindow.h" Then tried: [TransparentWindow setAlphaValue:0.5]; [...

How to access the main windows handle once the child window exits in a process in C#

I am starting an application in C# through Process.start(). when that application opens initially a child window runs to attempt to connect to a simulator hardware. till the child window succeeds in connecting to the hardware the child window remains in focus and the main window remains in the background. once the child window succeeds i...

Internet application or window application?

I should develop a online search application which connects to an external database in a different server. This application can be a web application one (running on a Internet browsers basically) or a normal standard window application (with its own GUI). Does one of the two approaches have more benefits of the other? If so, which one? ...

How to make HTML open a hyperlink in another window or tab?

This is a line for a hyperlink in HTML: <a href="http://www.starfall.com/"&gt;Starfall&lt;/a&gt; Thus, if I click on "Starfall" my browser - I am using FireFox - will take me to that new page and the contents of my window will change. I wonder, how can I do this in HTML so that the new page is opened in a new window instead of changin...

<title> and window.parent

Hello, my site is a design on index.php and then a frame on it.. Now, i want to do so the titles changes When you browse to eg. Videos.php. So how should i do this with window.parent and title? The title needs to be changed on index.php. So cant it be done like on videos.php: <script> window.parent.changeTitle("Videos - Mysit...

Create Invisible Window in GTK#?

I'm looking to create an invisible window for the processing of certain X events (sort of like NativeWindow in Winforms). Is this possible in GTK#? Or do I need to manually create such a window using P/Invoke to the X libraries? ...

Get XAML source of WPF Window

Hi, I would like to get the XAML source of a WPF Window (MainWindow). Clicking on a button on that window would return the XAML of the window and I would save it in another file. Is this possible and how can it be achieved? Thanks! Satixx ...

How to change current Plot Window Size (in R)

For example. Assume I do: dev.new(width=5, height=4) plot(1:20) And now I wish to do plot(1:40) But I want a bigger window for it. I would guess that the way to do it would be (assuming I don't want to open a new window) to do plot(1:40, width=10, height=4) Which of course doesn't work. The only solution I see to it would be t...

Qt - Moving Frameless window (slow repaint?)

Hy there, I'm new to Qt and i tried to create a Frameless window, which is dragable. The Problem is, if i move the window.. there are are thousands of (it? sorry, don't know how to describe it in english) until i stop. Is there a way to fix this, or am i thinking the wrong way? MyWindow.h #include <QMainWindow> #include <QLabel> #incl...

Get title of front window in carbon

Hello, I am writing a program to sit in the background on osx 10.6, listen to keystrokes and record them, grouping them by window title. (No, I am not writing malicious software. I do not need this program to be sneaky in any way, I just want to have a safety net for when I have typed a huge email and then accidentally refresh the page...

Disabling multi core programmaticaly

Is there any possible way of disabling multi core functionality on windows and just using a single core using C\C++? Any library that allows it? My application access one of our chip modules used to communicate with the host. We suspect someone else is accessing this module and changes it. The strange thing is that it only happens on a m...