w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to set window position in VB when window is not visible?
Try: FormTest.Left = 1000 FormTest.Visible = True FormTest.BringToFront() And if you want the window to start at the position you want when you use .Show() then: FormTest.StartPosition = FormStartPosition.Manual With this way it will start on the position you specified from the beggining.

Categories : Vb.Net

OGRE - Multiple windows - render window and menu window
I prefer to use Qt for my GUI controls. I think it the most convenient library vor creating non-game GUIs. Combining Ogre and Qt is possible. There are code examples for Windows, Mac, Unix. Please have a look here.

Categories : Ubuntu

Tkinter window in front of specific window (or all windows)
Well, in windows according to this, you should be using the following code to make your job done: import win32ui, win32con, win32gui hwnd = int(eval(<toplevel>.wm_frame())) # Get the window info from the window manager win32gui.SetWindowPos(hwnd, win32con.HWND_TOPMOST, 0, 0, 0, 0, win32con.SWP_NOMOVE | win32con.SWP_NOSIZE) But for this I have my finger crossed as you know the behavior for windows program remains in mystery because its closed source..

Categories : Python

My inputcommand keybinding to main window does not work when child window is focussed(same wpf window)?
The key bindings will only work if the Form is focused. You could redirect every Command in your new Window to the Main Window Change your Constructor to of the new Window to accept a Main Window and save this window: MainWindow mainWindow; public Window(MainWindow w) { mainWindow = w; } Whenever a Keybinding executes just do something like this: mainWindow.TabPress(); And show the Window with Window childwindow = new Window(this) { Title = "ChildWindow", Width = 200, Height = 300 }; childwindow.Show();

Categories : C#

javascript/jquery : Window.open opens child window but after few seconds child window get automatically closed for some urls(for IE and chrome)
It's because this code is executed on init on https://wpc.gcsip.com/wpc/wpc page // check that this page is not in a subwindow (e.g. after a session time out) if ( window.opener ) { window.opener.location = "wpc"; window.opener.focus(); window.close(); }

Categories : Javascript

How to Resize a window so that all components are visible
If you are using appropriate layout managers, you can simple call Window#pack. You should also consider checking out How to use scroll panes, cause I have some very large images... The other thing you can look at is the Scrollable interface

Categories : Java

window.close closes the postbacked child window and a copy of child window still appears
The showModalDialog method will freeze JavaScript execution on the parent window until the dialog that it opens has closed, so we can rule out that as the reason why your second window opens. When FileUpload.aspx posts back from the server, it should work the same way as modeless aspx postbacks. I think you should be able to get rid of the window.open() method and you should be fine. Parent window: window.showModalDialog("FileUpload.aspx", "FileUpload", "center:yes;resizeable=yes;dialogHeight:300px;dialogWidth:600px;"); The Child window will call this when it's done. window.close();

Categories : Javascript

open the link from the popup window in an external window and then close the original popup window
Try <input name="Apply Online" type="button" id="Apply Online" value="Apply Online" ONCLICK="window.location.href='some_url';$.colorbox.close();"> or <input name="Apply Online" type="button" id="Apply Online" value="Apply Online" ONCLICK="window.location.href='some_url';parent.$.colorbox.close();">

Categories : Javascript

Console window is not visible when output is redirected
if you set UseShellExecute = true the cmd process window will appear. You wil need to set RedirectStandardInput and RedirectStandardpOutput to 'false' (or comment them out) however. private static void AttachToConsole () { System.Diagnostics.Process process = null; process = new Process(); process.StartInfo.FileName = "cmd.exe"; //process.StartInfo.RedirectStandardInput = true; //process.StartInfo.RedirectStandardOutput = true; process.StartInfo.UseShellExecute = true; process.StartInfo.CreateNoWindow = false; process.EnableRaisingEvents = true; process.Start(); process.OutputDataReceived += null; Console.Write("Press any key to continue..."); Console.ReadKey(); process.OutputDataReceived -= null; process.CloseMainWindow(); p

Categories : C#

window.open('','','location=no') address bar is not visible in ie
Try this <!DOCTYPE html> <html> <head> <script> function openWin() { myWindow=window.open('','','width=200,height=100'); myWindow.document.write("<p>This is 'myWindow'</p>"); myWindow.focus(); } </script> </head> <body> <input type="button" value="Open window" onclick="openWin()" /> </body> </html>

Categories : Javascript

PopUp window is still visible on screen if the MainWindow is out of focus in WPF
You can explicitly close the popup when its owner window is deactivated, i.e. when another window gets the focus and comes to the top, using the Deactivated event: window.Deactivated += (sender, args) => { thePopup.IsOpen = false; }; You might also want to capture the IsOpen state and restore it when the window is Activated.

Categories : Wpf

fullcalendar not visible until button is clicked or window resized?
The problem is that the calendar is initialized while the modal is not visible. If the modal was in a controller, you could potentially use $scope.$on('modal-shown', function() {}); to somehow trigger calendar('render');. I couldn't figure out a way to detect visibility. I tried using a $watch in the directive on elm.is(':visible'), but could only get it to check 2 times, when it loaded.

Categories : Twitter

How to get an offset border round the visible part of the browser window
Try this: HTML: <div class="border-box"></div> CSS: body { position: relative; } .border-box { border: 5px solid blue; box-shadow: 0 0 100px 100px #fff; position: fixed; pointer-events: none; bottom: 10px; left: 10px; right: 10px; top: 10px; } How it works: I absolutely positioned an overlay with borders, that will stick the edges of the screen by using top, bottom, left, right definitions. To make the content below selectable, you set pointer-events: none; on the overlay. Example: http://codepen.io/anon/pen/BxJbh If you want to achieve the same results without adding additional HTML markup, you can use the :before sudo selector to prepend a block to the body. Simply add this CSS and it will produce the same results: body:before { border: 5px soli

Categories : CSS

Making a popup window between two websites
Take a look at the jQuery UI Dialog (http://jqueryui.com/dialog/) or Twitter's Bootstrap Modal (http://twitter.github.io/bootstrap/javascript.html#modals) I think the both solutions can do what you need.

Categories : C#

making a popup window with menus
You may not wish to shove a bunch of windows at the user since that will make for a very annoying user interface. Instead, consider doing what professional applications do -- keep one window in view for the most part, but change views in that window, showing an occasional dialog window as needed. In Swing you can use a CardLayout to help you swap JPanels, each with its own GUI/view on it. If you're interested in pursuing this, then check out the CardLayout tutorial. There are also plenty of examples of CardLayout use to be found on this site, several written by me.

Categories : Java

Making the console window bigger in C
Alright, after much deliberation, I got the code working. Using this include: #include <windows.h> This struct: struct SMALL_RECT { SHORT Left; SHORT Top; SHORT Right; SHORT Bottom; }; And this function: void adjustWindowSize() { struct SMALL_RECT test; HANDLE hStdout; COORD coord; BOOL ok; hStdout = GetStdHandle(STD_OUTPUT_HANDLE); coord.X = 100; coord.Y = 50; ok = SetConsoleScreenBufferSize(hStdout, coord); test.Left = 0; test.Top = 0; test.Right = coord.X-1; test.Bottom = coord.Y-1; SetConsoleWindowInfo(hStdout, ok, &test); } //end adjustWindowSize I successfully adjusted the size of the console window to the values in coord.X and coord.Y

Categories : C

how to list all visible jinternal frame from desktoppane to window menu in java
I think you should take a look to this and this. Just call JDeskoptPane.getAllframes() to get the frames, and JInternalFrame.setSelected(true)to focus. To watch frame addition deletion, you could use a listener.

Categories : Java

Making a window appear out of clicking on a image javascript
Try adding this <a> link tag to your images: <a href="javascript:void window.open('YOUR-IMAGE.jpg', 'width=WIDTH,height=HEIGHT,toolbar=0,menubar=0,location=0,status=0,scrollbars=0,resizable=0');">IMAGE HERE</a> ...for example: <div id="gallery-top-picture"> <a href="javascript:void window.open('images/IMG_1786.jpg', 'width=250,height=250,toolbar=0,menubar=0,location=0,status=0,scrollbars=0,resizable=0');"> <img src= "images/IMG_1786.jpg" width="125" height="125" border="1"/> </a> </div>

Categories : Javascript

Making divs stay the same place when resizing window
If you don't want them to move around, place the elements in a fixed size parent container. DEMO CSS #container { width: 1000px; } #leftblock { margin-left: 20%; background-color: red; float: left; height: 100px; width: 3px; } #rightBlock { margin-right: 20%; background-color: red; float: right; height: 100px; width: 3px; } HTML <div id="container"> <div id="leftblock"> </div> <div id="rightBlock"> </div> </div>

Categories : HTML

Making Qt Widgets Stretch and Scale w/ Main Window
I like this video tutorial on youtube. I'll help you create a layout using QLayout classes. If you use QtCreator/Designer, you can also take a look at the auto-generated ui_MainWindow.XXX file that will clue you in on how it uses some of the UI classes. As always, QtCreator/Designer has a bunch of hints and tips so you should be able to dig up from the documentation that's embedded in the application.

Categories : C++

Making Twitter Bootstrap Modal window bigger
When we show images with bootstrap modal, we use the following css: #myModal { max-height: 80%; overflow-y: auto; .modal-body { max-height: none; text-align: center; } } And then just do $('#myModal').modal("show"); The crux is setting the max-height on .modal-body to none.

Categories : Javascript

How to automate the "Windows Security" window: "Windows can't verify the publisher of this driver software"
Are you able to identify the window using the Win... functions? If so you could try using MouseClick: $aPos = WinGetPos("Windows Security") MouseClick("left", $aPos[0]+50, $aPos[1]+100) First get the position of the window, then add some pixels so that when you do a right-click with the mouse you click the appropriate button. Of course you need to adjust the number of pixels to add to the x-/y-axis.

Categories : Windows

iPhone simulator not scrolling on windows (not Windows™, a window brought up on a website)
Try Modal box on iPhone no scroll The modal becomes a static height on the screen and it should allow you to scroll all the way to the bottom of that window. Change the height setting so that it fits.

Categories : Iphone

pyGTK how to redisplay a top level window (with child widgets) after window destroy signal is sent
Have you tried making another copy of the window class and showing that one instead? Note: This will reset anything that was set in the window. i.e. if a person did something to make label1 say 'Hi!' instead of 'Hello!', it is going to be reset again to 'Hello!', since you are recreating the window.

Categories : Misc

Locking the size of a resizable window to the original aspect ratio of the window in Pyglet
Although this looks a little hackish for me, but at the moment I don't think of any other possibilities to solve you problem. Anyway, this is working: import pyglet window = pyglet.window.Window( resizable=True ) @window.event def on_resize( width, height ): ratio = 9/16 window.set_size( width, width*ratio ) @window.event def on_draw(): window.clear() pyglet.app.run()

Categories : Python

Why does Internet Explorer fire the window "storage" event on the window that stored the data?
Microsoft seems to be aware of the issue, but it doesn't look like they're going to fix it any time soon: https://connect.microsoft.com/IE/feedback/details/774798/localstorage-event-fired-in-source-window One option is that you can design your listeners and setters so that they don't react or store when they get information from a storage event that's already consistent with their state. However, this design pattern can be more difficult than relying on the storage event only firing on other windows. Another option is to make local storage work the same way in IE that it works in other browsers. I came up with an admittedly hacky but functional solution that I tested in IE10 and expect to work in IE8 and IE9. My javascript components don't listen to the window "storage" event directly bu

Categories : Javascript

Closing a process child window (e.g. a Word window) accessing a specific file
I found this very detail post about the subject, maybe it can help you http://forum.sysinternals.com/howto-enumerate-handles_topic18892.html That post hase some disucussions and related questions here http://forum.sysinternals.com/topic19403.html

Categories : C#

Jquery .scroll() not working in IE with both $(window) and $(document). (issue with window.pageYOffset?)
From the MDN docs: For cross-browser compatibility, use window.pageYOffset instead of window.scrollY. Additionally, older versions of Internet Explorer (< 9) do not support either property and must be worked around by checking other non-standard properties. You could always use jQuery's implementation of scrollTop(), it should work for all browsers: $(window).scroll(function() { var y_scroll_pos = $(this).scrollTop(); var scroll_pos_test = 200; if(y_scroll_pos > scroll_pos_test) { $('.extratext').slideDown('slow'); } });

Categories : Javascript

Keeping slide-out div flush with left side of window upon window resize
Simply add: $(window).resize(function(e) { if ($("#slideout").css('left') != '0px') $("#slideout").css('left', -($("#slideout").width() - 15)); }); http://codepen.io/anon/full/rjaHD

Categories : Jquery

How I can see the width & height of my window on the "body" when I am modifying the size of the window with jquery?
Like that? DEMO http://jsfiddle.net/yeyene/5ANZz/1/ $('#width').val($(window).width()); $('#height').val($(window).height()); $(window).resize(function(){ $('#width').val($(window).width()); $('#height').val($(window).height()); });

Categories : Jquery

how we can restrict user to click or go on the browser window until they close the opened pop up window?
You basically need a modal pop-up. This link should help you: http://www.codeproject.com/Tips/589445/JavaScript-Modal-Popup-Window

Categories : Javascript

Javascript Window.Open how to obtain the opened child window from a different page
First its seen little bit tricky.. you declare some ajax function to send information to server whether child window opened or not.. if child window opened then refresh page. for E.g . -> assume that user opened 2 same page In different tabs1 and tab2. -> user opened opened popup window on tab2 and add/change some information.. -> tab2 content refresh as per ur event. you should also send a one flag to server with session id and tab1 continuous check is that any changes happed to server it will be refresh..

Categories : Javascript

How to call enlarge-window function depends on current window in Emacs
Taking advantage of windmove being part of emacs, this is what you can do: (require 'windmove) (defun move-separator-up (arg) (interactive "p") (if (< (cdr (windmove-other-window-loc 'up)) 0) (shrink-window arg) (enlarge-window arg))) (defun move-separator-down (arg) (interactive "p") (if (< (cdr (windmove-other-window-loc 'up)) 0) (enlarge-window arg) (shrink-window arg))) When you have 3 windows, enlarge-window and shrink-window rules might not do always what you want, so some further customization might be needed.

Categories : Emacs

How can I show alert in parent window from child popup window in javascript?
try this code <!DOCTYPE html> <html> <head> <script> function openWin() { myWindow=window.open('','','width=200,height=100'); myWindow.document.write("<p>This is 'myWindow'</p>"); refreshParent(); } function refreshParent() { window.parent.focus(); window.parent.alert("message"); window.parent.location.reload(); } </script> </head> <body> <input type="button" value="Open 'myWindow'" onclick="openWin()" /> </body> </html>

Categories : Javascript

window.URL || window.webkitURL not working with Safari browser version prior 5
The window.URL APIs are not supported on Safari 5. Take a look at the table here: http://caniuse.com/#search=createObjectURL Only the most recent versions of current browsers support the API.

Categories : Javascript

For Chat window.whether i go for dynamic user control or client side div tag pop up window?
I helped write and maintain a simple chat window in ASP.Net WebForms a while back, the way we did it was to use some simple JavaScript making some HTTP requests to a page which had WebMethods on it. The C# page contained a WebMethod for getting new messages from the server which was called from JavaScript running on a setTimeout loop. It also contained a WebMethod for adding new messages to the session. If I recall correctly, some kind of queue was used per user involved in the chat session and all the method for getting new messages did was to map the user to the correct queue and take all the messages that were present at the time. Hopefully this helps.

Categories : Asp Net

How do I detect if a new window has been opened? The window opens via a submit with target="_blank"
My recommendation would be to check beforehand if the user is using the app and then modify the behavior based on that, rather than checking if a new window opened. I have in the past accomplished this by checking the screen.width property (can be similarly accomplished in CSS), but you can do it more cleanly (courtesy of this post's answer): if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // some code.. } This is cleaner, as you can determine at load time whether you'll need to open in the current window or a new window, rather than reacting later to something that happens for the user.

Categories : Javascript

Can I interact with the current debugging session variables using C# Interactive window or Immediate window?
You could use linq to do anything you can do in a loop because it is evaluated as an expression for example R.Where(item => item != R[0]); Will show you all items not equal to the first item. Here is why you can do anything with a linq expression: Enumerable.Range(1,1).Select(one => { // any function code you want here //return any type of variable. });

Categories : C#

Android Crash, java.lang.IllegalArgumentException: Window type can not be changed after the window is added
check Androidmanifest.xml <uses-sdk //************ android:targetSdkVersion="X"/> X must be less than 14 Or remove this attribute. good luck guy.

Categories : Android

chrome is opening window.open() in full window mode.
Maybe you can check your browser settings because I am in Chrome and the JSFiddle code worked perfectly fine for me. The browser opened with width 400 and height 200. Also, check your actual code to make sure it is the same as the one you posted.

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.