window

Disable code window undock in VS2010

天涯浪子 提交于 2020-01-15 05:07:19
问题 I've seen cases where people are asking how to disable on double click. But i'd like to go one further and disable the feature altogether, does anyone know how to? I don't mean all windows (Properties, Debug, Output) just code windows (Pages, Controls, other files) I'm using VS2010 SP1 + PowerTools and I keep undocking code windows when selecting the tab if i accidently drag down and it's really frustrating! Many thanks in advance, Cheers, P. 回答1: I also don't know any option to disable it,

Image in tkinter window by clicking on button

别等时光非礼了梦想. 提交于 2020-01-15 03:09:12
问题 I need help about this program, this program should open image in new tkinter window by clicking on button, but it doesn't it just opens new window without image. Where is the problem? Using: python 3.3 and tkinter This is program: import sys from tkinter import * def button1(): novi = Toplevel() canvas = Canvas(novi, width = 300, height = 200) canvas.pack(expand = YES, fill = BOTH) gif1 = PhotoImage(file = 'image.gif') canvas.create_image(50, 10, visual = gif1, anchor = NW) mGui = Tk()

Pass Variable to a Popup Window using Javascript

半城伤御伤魂 提交于 2020-01-14 16:50:51
问题 I need to pass some text from the current page to a popup window without going for a server hit. The information (herewith represented by 90) is already available in the parent form (it's like a paragraph-long text which is stored in a hidden variable). I just need to display that as a popup. Here's what I've tried, this works to some extent but doesn't work if I pass text, instead of a number. My second concern is that the solution kinda looks ugly. Any tips? Thank you. This is SCCE, you can

Pass Variable to a Popup Window using Javascript

只愿长相守 提交于 2020-01-14 16:50:12
问题 I need to pass some text from the current page to a popup window without going for a server hit. The information (herewith represented by 90) is already available in the parent form (it's like a paragraph-long text which is stored in a hidden variable). I just need to display that as a popup. Here's what I've tried, this works to some extent but doesn't work if I pass text, instead of a number. My second concern is that the solution kinda looks ugly. Any tips? Thank you. This is SCCE, you can

Pass Variable to a Popup Window using Javascript

二次信任 提交于 2020-01-14 16:49:13
问题 I need to pass some text from the current page to a popup window without going for a server hit. The information (herewith represented by 90) is already available in the parent form (it's like a paragraph-long text which is stored in a hidden variable). I just need to display that as a popup. Here's what I've tried, this works to some extent but doesn't work if I pass text, instead of a number. My second concern is that the solution kinda looks ugly. Any tips? Thank you. This is SCCE, you can

In c++ Windows API resize window during runtime?

假装没事ソ 提交于 2020-01-14 13:05:56
问题 How do you resize a global hwnd variable during runtime when a button is clicked? Or just any way to resize the window during runtime. i.e. HWND hwnd; //global int buttonid = 250; // an id for a button //also global int WINAPI wWinMain(/*blah blah blah */) { //blah blah blah hwnd = CreateWindowEx( 0, L"WindowClass", L"Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 275, NULL, NULL, hInstance, NULL ); HWND mybutton = CreateWindow( L"BUTTON", L"Button", WS_VISIBLE | WS_CHILD |

In c++ Windows API resize window during runtime?

浪子不回头ぞ 提交于 2020-01-14 13:05:31
问题 How do you resize a global hwnd variable during runtime when a button is clicked? Or just any way to resize the window during runtime. i.e. HWND hwnd; //global int buttonid = 250; // an id for a button //also global int WINAPI wWinMain(/*blah blah blah */) { //blah blah blah hwnd = CreateWindowEx( 0, L"WindowClass", L"Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 275, NULL, NULL, hInstance, NULL ); HWND mybutton = CreateWindow( L"BUTTON", L"Button", WS_VISIBLE | WS_CHILD |

In c++ Windows API resize window during runtime?

徘徊边缘 提交于 2020-01-14 13:04:20
问题 How do you resize a global hwnd variable during runtime when a button is clicked? Or just any way to resize the window during runtime. i.e. HWND hwnd; //global int buttonid = 250; // an id for a button //also global int WINAPI wWinMain(/*blah blah blah */) { //blah blah blah hwnd = CreateWindowEx( 0, L"WindowClass", L"Window", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 300, 275, NULL, NULL, hInstance, NULL ); HWND mybutton = CreateWindow( L"BUTTON", L"Button", WS_VISIBLE | WS_CHILD |

Closing the Browser tab using js or jquery

白昼怎懂夜的黑 提交于 2020-01-14 12:47:32
问题 I want to close the current browser tab by clicking a button. window.close method does not work. 回答1: You can't close the current browser tab with javascript. It would be annoying for the user if sites start to close themselves like this without the user intent so browsers simply do not allow this. Don't forget that the notion of a browser tab is not defined anywhere in the HTML nor the EcmaScript specifications, some browsers don't even have tabs. You could of course write a plugin that you

Select and focus an already existing window

孤街浪徒 提交于 2020-01-14 12:37:40
问题 I run an e-commerce website, and I need to get this popup working when a client submits an order. Ideally, the popop would appear when the order success page loads, but popup blockers will stop this. Instead, I generate the popup when the use clicks the "confirm order" button, but this obscures the 3DSecure page that the checkout redirects to before the order finishes. To counteract this, I create the popup when the user clicks "confirm order", but instantly refocus the main window; a pop