Questions tagged [window]

In computer science a window is a graphical interface to let a user interact with a program. Questions regarding Microsoft Windows should use the "Windows" tag.

A window is an area of the screen containing controls and other objects controlled by a program. A User can use these objects to instruct the program on what to do and the program can use these objects to show outputs related to user commands. A window is an important part of Operating Systems havin a Graphical User Interface (GUI).

9460 questions
50
votes
6 answers

How do I get the offset().top value of an element without using jQuery?

I'm programming a single-page application using the Angular framework. I'm new to it. I've read this guide to help me understand the fundamental differences between jQuery and Angular and I'd like to follow this guidance as much as possible and NOT…
saikofish
  • 1,744
  • 1
  • 15
  • 12
50
votes
3 answers

window.onerror not working in chrome

I am trying to add an onerror event to my website. window.onerror = function() { alert("an error"); } But all I receive is: notThere(); ReferenceError: notThere is not defined What am I missing? Browser: Chrome 26.0.1410.64 m Steps to…
Dinkheller
  • 4,631
  • 5
  • 39
  • 67
49
votes
7 answers

jquery - keep window from changing scroll position while prepending items to a list?

I have a page that displays messages and I want it to work just like Facebook, but without the lazy loader. Messages are displayed in chronological order, most recent last. My message list is initially populated x number of most recent messages, and…
Redtopia
  • 4,947
  • 7
  • 45
  • 68
48
votes
5 answers

How to create custom window chrome in wpf?

How can I create a basic custom window chrome for a WPF window, that doesn't include the close button and still a moveable and resizeable window?
Carl Weis
  • 6,794
  • 15
  • 63
  • 86
48
votes
8 answers

window.open() on a multi-monitor/dual-monitor system - where does window pop up?

When using javascript window.open() on a multi-monitor system, how do you control which monitor, or where in the display space the popup opens? It seems out of control to me and otherwise random in it's behavior.
Bob Brunius
  • 1,344
  • 5
  • 14
  • 21
47
votes
6 answers

How can I switch focus after buffer split in emacs?

I would like that after splitting the window (C-x 3 or C-x 2) to be able to automatically get to cursor in the new opened buffer (the other than the current). How can I achieve this behavior ?
morgan freeman
  • 6,041
  • 3
  • 25
  • 32
45
votes
10 answers

How do I know if a WPF window is opened

In a WPF window, how do I know if it is opened? My goal to open only 1 instance of the window at the time. So, my pseudo code in the parent window is: if (this.m_myWindow != null) { if (this.m_myWindow.ISOPENED) return; } this.m_myWindow = new…
guilhermecgs
  • 2,913
  • 11
  • 39
  • 69
44
votes
8 answers

How to enable duplicate tabs in Eclipse? (i.e. duplicate windows)

If there's one thing I miss about emacs it's having 4 windows of the same file open, each at a different location in that file, for super quick referencing. Is there a way to get Eclipse to present multiple tabs of the same file?
emish
  • 2,813
  • 5
  • 28
  • 34
43
votes
1 answer

WinAPI: Create a window with a specified client area size

I was wondering how can I create a window using Win32 API with a specific client area size. When trying to create a window using the following piece of code, the entire window is 640x480, with the window's chrome taking some of the client area: HWND…
GeReV
  • 3,195
  • 7
  • 32
  • 44
43
votes
7 answers

How to run function of parent window when child window closes?

I am calling the javascript window.open() function to load another url in a pop up. Once the users is finished it takes them to the last page that has a link that says close window that calls the window.close() function. Now when that page closes I…
ngreenwood6
  • 8,108
  • 11
  • 33
  • 52
42
votes
2 answers

How can I move a window to another session in tmux?

In tmux, how can I move a window from a session to another session? ex. move window:4 in session [0] to session [4] .
黃郁暉
  • 437
  • 1
  • 4
  • 7
42
votes
5 answers

How to create a hidden window in C++

How to create a hidden window ? The purpose of this window is to receive some messages.
anand
  • 11,071
  • 28
  • 101
  • 159
40
votes
2 answers

Get locale specific directory in My documents

I have my custom application that generates a directory in My documents path, after installation the application uses that directory, but i got an issue in Chinese windows OS, where my application folder name appears in Chinese, so is there any way…
Vaibhav
  • 411
  • 1
  • 5
  • 6
40
votes
6 answers

How to build library with WPF forms

Is it possible to build a Class Library dll which also includes WPF forms? When I try to build one I get following errors: Error 1 Library project file cannot specify ApplicationDefinition element. Error 2 The project file contains a property…
Jens
  • 3,249
  • 2
  • 25
  • 42
39
votes
6 answers

save data from visual studio memory window

Is any possiblility to save some buffer in any binary file, to view in standalone hex editor. For example, can I save data from memory window in VS to hex dump, but not as ASCII ?
StNickolay
  • 950
  • 2
  • 9
  • 21