window

Notify minimised window of an event occurrence in an applet

Hi, I have a JApplet which is used for chat. I would like to make it possible that when the applet is minimised and a chat message is received by the user, the minimised window becomes orange (and thus shows the user that something has occurred). How is it possible to make the applet do this? Thanks, Tim ...

WPF Generic Windows

Hi! I want to make a reusable WPF Window suitable for different types T. I have a designer and a codebehind file. can I do something like this? /* Code behind file */ public partial class MyWindows<T> : Window {} ...

Hide buttons from titlebar in Cocoa

Hi all! Let's see, Apples Human Interface Guidelines say: How do I make the very first titlebar in that image (with only a close-button). Disabling both 'Resize' and 'Minimize' in IB only make the resize/minimize buttons get disabled. But I want them to dissapear. How can I do that? Thanks in advance. ...

How to freeze/grayish window in pygtk?

I want main window to "gray, freeze, stop working", when some other window is opened. Is there some default way to do it? Pretty much the same as gtk.Dialog is working. EDIT: Currently I'm just replacing all contents by a text line, but I guess there should be better way. ...

Looking for list of files already included with each version of Windows (XP, Vista, 7) so we know what to distribute

We have been distributing OleAut32.dll and olepro32.dll (and other DLLs that are in the VB6 Runtime package) for many years now but Windows 7 has a newer version of those. And we were forcing our VB6 app to use our copies of them. I removed all of our standard DLL's (including the above) and the app runs just fine, so they're all inclu...

Why does CTRL-SHIFT-F redraw several windows on my desktop in Visual Studio?

Hi ! I have a 3 monitor setup and usually have Visual Studio 2008 open and the help on another screen and some other windows. When I press CTRL-SHIFT-F to open the Find and Replace Dialog, my desktop starts to redraw several windows on my desktop. That extremly slows down opening that dialog for me. Btw. this also happens when I open t...

return two values out of a remote thread (C, windows)

I currently have a thread that I created using CreateRemoteThread(). Everything works great. Upon finishing (or an error before completion) the thread returns one of the five return codes that we defined. I run into a problem and I need to return the results of GetLastError() as well. Is there any way to return two values? I am using W...

QT4 Drag Window Without Title Bar

The application I'm working on has a custom UI that required me to remove the title bar from the main window. Unfortunately, I can't figure out how to make it so I can move the application on the screen :) The code I have which is removing the title bar is the following: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent...

How to get and set window position of another application in c#

How can I get and set the position of another application using c#? For example, I would like to get the top left hand coordinates of Notepad (lets say it's floating somewhere at 100,400) and the position this window at 0,0. What's the easiest way to achieve this? ...

Set Window.Content to a page by XAML?

<Window x:Class="MyWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:src="clr-namespace:WpfApplication1" Title="ContactsSelector" Height="300" Width="300"> <Window.Content> <src:MyPage> <!--MyPage is a page that I c...

Capture window close event

I want to capture events that close editor window (tab) in Visual Studio 2008 IDE. When I use dte2.Application.Events.get_CommandEvents(null, 0).BeforeExecute I successfully captured such events: File.Close File.CloseAllButThis File.Exit Window.CloseDocumentWindow and others. If code in window is not acceptable, I stop the event (C...

.NET (C#) Window Minimize Event

Hey, I'm really stuck with my project here... I need to know when any open window has been minimized / restored and Handle the event in my own App. Any ideas? Edit: Musigenesis is right, i do want to know when OTHER applications are minimized/restored ...

Open external link in a new window in ruby docs (rdoc)

Hi there, I'm stuck: I need to create an external link using Rdoc which opens in a new window. What I have and what opens up in the current window is this: ... to be found here[link:../../bla_bla_bla/index.html] ... How do I make it open in a new window? Any idea? Thanks Matt ...

How to keep a window on top of all other windows in my application only?

I would like to display a status window in my C# Windows Forms application that informs the user when the application is waiting to acquire a lock. This is an application-defined thing, however, the window should be visible and always remain on top of all other windows of my application, even when the user clicks on another window (like ...

Get Filename of the Current Active Window

I am trying to get the filename of a word document or any other window for that matter while some dialog box like Save as or Open or Print etc. is open. Can anybody give me an example of how to implement this in C#. Thanks! Saurabh ...

How to append <tbody > to <table> of parent window with jQuery?

popup.html is popped up by script from parent.html: window.open('popup.html', '', 'width=520, height=300,left=500,top=0'); Is it possible for popup.html to operate parent.html? ...

Sliding window over seq

In Clojure, what would be the nicest way to have a sliding window over a (finite, not too large) seq? Should I just use drop and take and keep track of the current index or is there a nicer way I'm missing? ...

consume a wcf duplex service in windows form

I have a wcf duplex service with work fine in silverlight. but the same service want to consume in windows forms. how it possible. my code as folow:- EndpointAddress address; address = new EndpointAddress("http://server08:2508/JakayaChatService"); CustomBinding binding = new CustomBinding( new Pol...

Need a way to return scroll window position after page refresh

I am writing a game in PHP/Zend Framework and Facebook JavaScript. The gameboard is displayed in a scrolling window. To view the entire gameboard, the user must scroll around. Each step of the game causes a page refresh, so when the user moves on to another step, their scroll postion is lost and the window is returned to it's default pos...

When to make a form flash and stop flashing?

I am writing an IM program, and I have the method to make a form flash and stop flashing... question is, how do I implement it? When a message arrives, I can set the window flashing, but I need to make sure it doesn't have focus. Checking the focued method always seems to return false and so it flashes even when the form is open. Also,...