window

close window event in java

I added an window state listener as follow: this.addWindowStateListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { ExitAction.getInstance().actionPerformed(null); } }); But when I'm using the X close button the event is not called. I think it's something to do with netbean jdeskto...

jquery window resize help please

Hi i am using : $(window).resize(foo()) to detect when the window is resizeing... the foo() works fine but it only fires foo() after the resize has finished so it's not while resizeing. is there a way to make the resize smoothly. maybe a cancelBubble could be something to do with it but im not familiar with it. any help is appricii...

jquery window resize help please

i have this script below that will resize the ".content" on window resize it works fine but the only problem is that it jerks it waits until the resize has finished and then resizes the ".content" is there a wait to smooth the resizing that it resizes while the window resizes? javascript function foo(){ //e.cancelBubble = true; ...

Window.Margin & Window.Padding don't work

hello. I am setting peroperty Margin and Padding of a window and it doesn't take effect: Here is an example: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" SizeToContent="WidthAndHeight" ResizeMode="NoResize" Padding="22" Margin="...

Target x button of a window title to an Button.Click event handler?

Hello, I have in my window a button called btnExit which I handle its event. I want that when I click the exit button (the red X in the right side) of the form, the event should be handled by the btnExit event. Is this possible whithout need to use the OnExit or Closing etc.? ...

Scroll to WPF elements outside boundary

I'm editing a WPF Window object in Visual Studio and have a canvas element that stretches outside the boundary of the Window. Visual Studio only gives a zoom in/out feature, but I can't scroll left or right, even though my canvas inside the Window stretches way off the right of the screen. How can I scroll out all that way? Thanks, Dave...

IE6 crashes with this jQuery

The following code crashes IE6 every time. It keeps refreshing the page and crashes after a minute: $(window).bind("load resize", function () { var hnf = $('#header').height() + $('#footer').height(); $('#main').height($(window).height() - (hnf)); $('.fluid').height($('#main').outerHeight()); $('#content').width($('#main...

can we do without using a hyper link button .how to call another .aspx page as pop up window in to current code behind page

any reference document ...

preventing multiple instance of one form from displaying

hello- I am working on an application in which there is one main form and several other forms that can be used concurrently. when A user clicks to open another form, I'd like to make it so that clicking the button for the form does not open the form up again if it is already open. showDialog wont work because the user still needs to ha...

How do I open a new window with javascript and use the parent window's existing session?

I am opening a window with window.open and I am losing the server session. Is there a way to open a window with Javascript and use the same session? I need this working in IE 7 and higher. I am working with ASP.NET on the server side. The sever does not have a sessionless cookie state. <sessionState mode="InProc" timeout="15" /> ...

C# get information about current active window

Hi SO. I have an application which i want to run in the background. I want to get the executable name, for an example IExplorer.exe. I have played around with the following code: [DllImport("user32.dll")] private static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll")] private static extern int GetWindowText(IntPtr hWnd, ...

Javascript and href in anchor tags

Can JavaScript see the target name of a window that was opened by a regular "href". Here is an example: <a href="http://www.cnn.com" target="_blanknewWindow" name="NewWindowName"> ...

Passing text info to a WPF "balloon" window

I want to be able to launch a "balloon"-type window when errors happen in my command line apps that I run in a batch. I'm thinking of creating a WPF executable, and passing it the message to be displayed on its command line. Will I be able to pass in Unicode characters on its command line? Can anyone suggest a different approach of ...

Window style and paint message

I created a window with WS_EX_LAYERED style, then i checked the first WM_PAINT message, I called BeginPaint to retrieve the area need to be paint, but the area i got is empty. But, when i create this window using WS_EX_LAYERED | WS_EX_COMPOSITED, i got the right area which need to be paint for the first WM_PAINT message. Why? Code fragme...

Custom title with image

Hi all, i'm creating custom title for activity by disabling standard one and managing everything myself. I wonder if it's possible to replace/theme standart title to my needs. I can customize size, background image, and text via themes by changing windowXYZStyle items. The only thing i couldn't find - how i can add image instead of tex...

Java AWT application window padding

I'm trying to build a simple AWT application in Java. I want all of the containers in the main window to be separated by bit. I can accomplish this by setting the Hgap and Vgap in the BorderLayout constructor (see below.) However, I can't figure out how to put a cap between the containers and the edges of the main window. How do I add a...

deny user from download and screencapture the web media

nowaday...a lot of problem coming out from the web media affecting the licening problem. until now i still cannot found any good solution for deny user from downloading or screen capturing the web media content. so, i wondering is that this situation will change in rails development ? any guy got idea about doing this ? the only solutio...

Using Microsoft Windows Standard Style in WPF-Window?

Is it posible to use the Microsoft Windows Standard Style in a WPF-window? If I create a normal WPF-Window with a textblock or something like that, the font is very small and not the same like in Microsoft Windows. The background of the window is white. Maybe you can tell me how to use the Style or an information source or things like th...

Window load event not responding in IE8

The following script, largely obtained online (which is used to select css stylesheets called thin, medium and large) has stopped executing in IE8 when the page loads. It is fine in IE7, IE6 and IE5 where it executes both on load and resize. In IE8 it only executes when the page is resized? It works in FF and recent versions of Opera. I...

WPF/XAML: How do I size a window with no border?

I am using a window with no border and drawing the Chrome myself. I want to resize the window in a typical manner and have defined a 3x3 grid with the center being the content and the outer cells constituting the respective areas requiring different treatment (TopLeft/TopMiddle/TopRight... etc.) such as cursors. Maximize, Minimize, Mov...