window

C++ - Basic WinAPI question

Hello! I am now working on a some sort of a game engine and I had an idea to put everything engine-related into a static library and then link it to my actual problem. Right now I achieved it and actually link that library and every functions seem to work fine, except those, which are windows-related. I have a chunk of code in my libr...

c++ repaint window

i got a window with an image in it. but when its a little picture i first need to resize the window before i can see it, the screen doesnt refresh/repaint. how can i fix this? ...

MVVM-Light: Load UserControl into Window

What is the best practice to load an UserControl into an Window with MVVM-Light? Where create the UserControl instance, in the ViewModel from Window or direct in the window? ...

how to animate a menu item into a large div (window) using jquery's animate?

i'm pretty sure this can be done pretty easily with jquery's animate api, but i'm not good enough to figure it out. what i want to do is this: i have a menu item at the top of the viewport that the user will click on. when the user clicks on it, you'll see something that looks like the div "popping" out of the menu and float to a part...

Difference between screen.availHeight and window.height

Hi, I am executing the following javascript on my browser(firefox) 1.console.debug("Screen height = "+ screen.availHeight); //output 770 2.console.debug("Window Height ="+ $(window).height()); //output 210 (i am using jQuery as well) What is the difference between the two? Are units of 770 is pixels and 210 is mm ? Similarly, when ...

Way to implementing Search functinality on a Window

I am working on a (WPF + C#) application. I have to implement search functionality. It will allow to search all the occurrences of a particular string on the specific part of Window. What can be the best way to do this? ...

execute a method on an existing object with window.setInterval

Hi, Is it possible to run the method on an existing object on timeout of window.setInterval method. I can emulate the same by having some global variable and calling the method of this global variable in setInterval, but i wanted to know if this is possible using the method directly. Best Regards, Keshav ...

Save a tab in a jQuery Modal Window for future Display

Hello, long time reader, first time poster. I’m coming with an issue that many of you will find trivial but I’m bashing my head against it for too long time and I can’t seems to find any clue on the internet. As a total scrubs with JavaScript, I’m trying to use JQuery.ui smartmodal windows (v 1.8.rc1) for displaying two football teams ...

How do you send information from one window to another in the same program?

In the program I am trying to build, I have a menu button that opens a second window. The user puts information into the second window, presses the "Done" button, and the information is transfered into the main window. The problem I am having is opening the second window. I have both windows build in xaml files in Visual Studio but I ...

Oracle/Toad Active Pane Setting

On TOAD for oracle, there is a bar at the bottom where your active windows (be it an sql editor, schema browser or SQL modeller window) are displayed. I have just moved office and it now only displays the active window and none of the other windows... any of you toad guru's know how to get it to display all the windows? Toad version 7....

Virtual PC (Program Developed on XP Runs on W7 Problem)

I have a developed a C++ application using 32 bit and it create a executable file. This project has uses some external library like window socket 32bit, Qt GUI and boost library. The dll is located at same directory with the executable. I wonder how can i run this application on window 7. MY window 7 version is Home Premium 64 bit. Th...

Hide JDialog window when the window lost focus.

Hi I have only one JDialog box in my Java application.I want to make it invisible if it lost the focus. I've tried different method, But didn't able to trigger any of the window focus events. Here is my code: public void windowGainedFocus(WindowEvent e) { System.out.println("gained focus"); } public void windowLostFocus(Windo...

IE6: Calling function inside parent window from iframe on same domain

Does anyone know how to call a javascript function inside parent window from iframe on IE6? Usually, parent.functionName() works for all browsers including IE7+. However, with IE6 it does not work. If you know please shed some lights! Thanks in advance. ...

Restricting number of PDA's connecting to the webservice on win Server 2008 box

Hi Is there any setting in IIS 7.0 or Win 2008 server box or Webservice.asmx itself to restrict number of the PDA's accessing at any time? Example i want only 60 PDA's to access the server consuming the webservice at any time. Gauls ...

javascript: want to resize window but also check if its open or closed

why doesnt this work? //I removed the 'for loops' for a second and then the script does something, what wrong with the loops?// var openWindows= new Array[50](); function resize(x){ //changed boolean to var var open = false; for(var i = 0; i < openWindows.length; i++){ if(openWindows[i] == x){ open = true; openWindows...

TemplateBinding a Title in custom window template WPF

Hi guys, So I'm making a custom window template for my WPF application. The trouble I'm having is that I cannot access the Window Title property inside the template. I tried this: <TextBlock Text="{TemplateBinding Title}" /> And this: <TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Title}" /> Ever...

edit data grid in window mobile c#

In window mobile c#,the data grid is read only in default mode. I want to edit data by programmatically. So, how can i change the data grid in editable mode? Thanks..... ...

How can I open a help file in Vim on a new buffer in an existing window?

I often take a look at help files in Vim, but sometimes I want to read one in full screen. Since the :help command opens it in a new window, and closing the old window, if it was the only one besides of the help file, for some reason closes Vim, the only way I found of doing this was opening the help file, and then reopening it in a new ...

Why are my WPF window sizes defaulting to be huge

I have a wpf application with a few forms. At design time they are small, and they are not set to auto size. However at run time they are giant, even with no content in them to make them big. Why is this happening? Here is one of the forms <Window x:Class="SuperPluginPicker" xmlns="http://schemas.microsoft.com/winfx/2006/...

ExtJS problem with Extended Window, shows in FF not in IE

I get this irritating error message in IE, 'Events is empty or not an object'. This is my Extended window: windowKandidaatInfo = Ext.extend(Ext.Window, { id: 'windowKandidaatInfo', title: 'Kandidaatinfo', border: true, bodyStyle: 'padding: 5px;', layout: 'fit', width: 800, height: 600, pers_id: 0, modal: true, viewConfig: {forceFit: tr...