window-resize

Non-resizable window swift

非 Y 不嫁゛ 提交于 2019-11-26 21:23:49
问题 I have a NSViewController named Hardness , and I need not to let user resize it. Of course, I can just resize it back every time the users tries, but is there any way just not to let user open a window to full screen, or to stretch the window? 回答1: edit/update: Xcode 10.2 • Swift 5 NSWindow has a property called styleMask that allows you to control what kinds of control will be available to the user. If you don't want to allow the user to resize the window you have to remove the style mask

Javascript's `window.resizeTo` isn't working

左心房为你撑大大i 提交于 2019-11-26 20:43:24
I'm trying to create a bookmarklet to do some very specific resizing to do browser size testing, and I can't seem to get the web browser to resize using window.resizeTo . Overly simplified example that doesn't work: javascript:window.resizeTo(1024,600); I can understand that browsers might have disabled this feature, but here's a screenshot of my JavaScript Settings in Firefox: Am I missing something obvious or should I file a bug report? According to this bug report , this is a new feature, not a bug. Specifically: Two rules: Can't resize a window/tab that hasn't been created by window.open.

Custom Resize Handle in Border-less Form C#

老子叫甜甜 提交于 2019-11-26 18:24:12
问题 I'm attempting to make border-less forms that pop out of a tool bar. I want the user to be able to grab at the bottom-right corner (a "resize handle") and be able to resize the form, but not be able to resize or reposition the form in any other way. I've heard that I can intercept the WM_NCHITTEST message sent to the form and set its result to HTBOTTOMRIGHT which will let the operating system handle the re-sizing of the form, just as if it had a sizable frame. The idea I had was to detect if

How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?

强颜欢笑 提交于 2019-11-26 16:20:37
THE PROBLEM: When I grab the resize border of my Windows app, especially the top or left borders, and resize the window, the contents of the window do resize "live" as I drag, but they resize in a hideous manner that looks like a blatant bug to even the most novice user: the contents at the opposite edge of the window from the edge I am dragging jitter/flicker/jump back and forth wildly. Depending on the situation, the phenomenon may look like: contents that seem to walk off the edge of the window and snap back when we slow down or stop dragging contents that seem to pull into the window,

Disable Browser Window Resize

笑着哭i 提交于 2019-11-26 09:37:53
问题 For starters... I have no sinister intention of subjecting users to popups or anything like that. I simply want to prevent a user from resizing the browser window of a webpage to which they\'ve already navigated (meaning I don\'t have access to / don\'t want to use window.open();). I\'ve been researching this for quite a while and can\'t seem to find a straightforward answer. I felt like I was on track with something along the lines of: $(window).resize(function() { var wWidth = window.width,

Javascript's `window.resizeTo` isn't working

末鹿安然 提交于 2019-11-26 07:41:48
问题 I\'m trying to create a bookmarklet to do some very specific resizing to do browser size testing, and I can\'t seem to get the web browser to resize using window.resizeTo . Overly simplified example that doesn\'t work: javascript:window.resizeTo(1024,600); I can understand that browsers might have disabled this feature, but here\'s a screenshot of my JavaScript Settings in Firefox: Am I missing something obvious or should I file a bug report? 回答1: According to this bug report, this is a new

How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?

99封情书 提交于 2019-11-26 04:44:08
问题 THE PROBLEM: When I grab the resize border of my Windows app, especially the top or left borders, and resize the window, the contents of the window do resize \"live\" as I drag, but they resize in a hideous manner that looks like a blatant bug to even the most novice user: the contents at the opposite edge of the window from the edge I am dragging jitter/flicker/jump back and forth wildly. Depending on the situation, the phenomenon may look like: contents that seem to walk off the edge of the

JavaScript window resize event

拈花ヽ惹草 提交于 2019-11-25 22:58:10
问题 How can I hook into a browser window resize event? There\'s a jQuery way of listening for resize events but I would prefer not to bring it into my project for just this one requirement. 回答1: jQuery is just wrapping the standard resize DOM event, eg. window.onresize = function(event) { ... }; jQuery may do some work to ensure that the resize event gets fired consistently in all browsers, but I'm not sure if any of the browsers differ, but I'd encourage you to test in Firefox, Safari, and IE.