window

How to retain an window without holding a pointer to it in garbage collected Obj-C?

I am currently working through the famous "Cocoa Programming for OSX" by Aaron Hillegaas. In Chapter 12 he wants me to create an about window using [BOOL] successful = [NSBundle loadNibNamed:@"About" owner:self]; which, by itself, works perfectly well. However, I am using the garbage collector and since I do not retain a pointer to t...

How to close a dialouge box from some custom link inside the dialouge box

Hi, I have custom control which i am rendering inside dailouge box. this custom control has a link lable lnkLable. I want to close the opened window when i click on lnkLable. right now i am finding the parent of my conrol which will be dialouge control in the end and then calling the dispose method of that, which i dont feel very good t...

How to get a windowless application in Ogre?

Hello, I'm trying to create a windowless Ogre application, but it seems that the method RenderWindow::setVisible(false) is completely ignored by the application. Is there a way to accomplish that? Thank you Tommaso ...

navigation controller upon a view in iPhone

hello, I would create a view programitically , then Can i place the navigation controller upon a view by making the view as rootview? and then return the rootview to the window object in Objective-C for iPhone programming. Is this possible? ...

How to get a tool window title bar height in WPF ?

WPF includes the title bar height in the total window height instead of using only the client content area height. Is there a way to disable this behaviour? If not, how can I get the height of a tool window title bar? I'm aware of the SystemParameters.CaptionHeight property and the SystemParameters.WindowCaptionHeight property but t...

Python: how to switch between workspaces using Xlib?

Hi, how do I switch between my window manager's workspaces using Python with Xlib module? I've been searching Google the last couple of hours, and this is my most promising attempt: #!/usr/bin/python from Xlib import X, display, error, Xatom, Xutil import Xlib.protocol.event screen = Xlib.display.Display().screen() root = screen.r...

Constraining window position to desktop working area

I want to allow a user to drag my Win32 window around only inside the working area of the desktop. In other words, they shouldn't be able to have any part of the window extend outside the monitor(s) nor should the window overlap the taskbar. I'd like to do it in a way that does cause any stuttering. Handling WM_MOVE messages and calling...

Get window handle of calling window

Hello, there is a software which calls a method in my C# dll. In this dll method i need to have the window handle of the program/window which called my dll. how to get this "calling window handle"? Thanks! ...

Windows: how can I run something in a new command window in such a way that the window closes when the process finishes or crashes?

I have a script that is supposed to sit there, happily running in a command window, spewing out data... but I want the window to close automatically when the script finishes or crashes. The script is auto-restarted by other processes and I don't want my processing machines to become polluted with unused terminals. In a pinch, I have co...

resize popup window based on content width and height

I've an html page with varying size. Based on the conditions i hide some contents. How can i get the width and height of the body with javascript, so that i can resize the window size dynamically based on the amount of contents of the page. Thanks... ...

jquery animate browser window

Hi, Is there a way to animate a browser window using jquery. Right now I'm essentially using this: $(window).animate({ left: '+=50' }, 5000}); The reason why it isn't working is probably obvious, although not for me. I eventually need to loop an animate effect so that the browser will move back and forth dynamically. Thanks. ...

How to set JFrame to appear centered, regardless of the Monitor resolution

While working in Java, I find it hard to position my Main application window in the very center of the screen when I start the application. Is there any way I can do that? I tried with some of the predefined methods but none worked. BTW it doesn't have to be vertically centered, horizontal alignment is the more important goal for me. B...

how to disable special keys in c# window application...?

hii....I am developing a window application how is it possible to disable special keys like control+alt+del to perform while running the application, i used keyhook method to disable almost all keys like windows,alt+f4 etc.... ...

WPF - Set dialog window position relative to main window?

I'm just creating my own AboutBox and I'm calling it using Window.ShowDialog() How do I get it to position relative to the main window, i.e. 20px from the top and centered. Thanks. ...

How to find a window by his inner text?

Hi, I have Application X (not mine!) with Subform x1, x2, x3. How can I find the subform by the inner text (e.g. a label in the subform)? ...

WPF-Window Topmost for own application only?

The Splashscreen/Loading-Window in my WPF application is set to Topmost="True". Now this windows in on top of all other windows even when you switch to another application (because loading will take some time). I don't want this kind of behavior. If I set Topmost="False" the window in not topmost at all. But If you switch back to my app...

Image overlay on external window

I'm writing a C# WPF application that creates a video capture of the active window. What I want to do is overlay a transparent .png file in the corner of the active window while a capture is in progress so that all the videos created by my application are watermarked. If I have the IntPntr handle of the window I am capturing and an ima...

how to refresh Window in extjs

i have one window in that i passed two dynamic gridPanel 1)FeaturGrid 2)gvpropertywn. i want to refresh testWin (Window) how i can? can u pls help me? testWin = new Ext.Window({ id:'resultwindow', title: LangVarTestWinText, width: 400, ...

Java library for capturing active window screenshot

Hi, is there any free and open source java library for capturing active window screenshot? I want to use it to capture any active window, not only SWING windows. Thanks. ...

wpf exit thread automatically when application closes

Hi, I have a main wpf window and one of its controls is a user control that I have created. this user control is an analog clock and contains a thread that update hour, minute and second hands. Initially it wasn't a thread, it was a timer event that updated the hour, minutes and seconds but I have changed it to a thread because the appli...