Hello,
I want a top margin for my webpage of say 100px when the window is maximised, but if the user resizes the window to shrink it I want this margin to shrink. The margin should have a minimum size of say 10px and should shrink in proportion to the window height.
An example if what I am trying to emulate is http://www.bing.com/
Ho...
I have this basic javascript code: window.resizeTo(1000,800) set to run when the page loads and it works perfectly in Firefox but not in Safari.
Thanks in advance!
...
How do I register a JS function to run when a browser window is resized ?
I assume it's in the
Page.ClientScript
class methods somewhere, but I am a bit confused.
...
I've got a WPF application which starts off with a very small window. Something in the area of 200x100. When certain events are raised from an external source, I add a control to the ItemsControl area of my window. The items control is currently set to use a StackPanel PanelTemplate.
What I want, is for the application window to grow wh...
Hi guys,
I'm trying to make a WPF window that opens already maximized, with no resize/move (in systemmenu, nor in border). It should be maximized all the time, except when the user minimize it.
I tried to put WindowState="Maximized" and ResizeMode="CanMinimize", but when window opens, it covers the task bar (i don't want it).
I have a...
I have a form where user can add and position charts and controls for a presentation like app. User can then change it to FullScreen mode, How do I change the size and position of controls to keep a relative position and size?
...
Hi All
I'm using the jquery resize to resize content on my webpage. It works, but I want that when the element reaches the desired height or width, it should stop resizing, how do I achieve this?
Here's the code:
$(window).resize(function(){
$(map).height(win.height() - 210);
if($(window).height() == 300){
$(map).css(...
Hello,
I want to develop windows C/C++ program, but i need
in it functionality like a Viewbox from .NET WPF.
But i don't want buying Visual Studio platform because
it has this control.
Can anyone tell me something replacment for this?
I want to do window, which after resizing, resizes
its contents with good proportion (images buttons ...
I have a window that does not have a title bar (WindowStyle == WindowStyle.None). The entire window uses the Aero glass effect. When I make the window unresizeable (ResizeMode == ResizeMode.NoResize), the glass effect disappears and my controls just hang in midair. (Essentially, the window itself disappears but leaves its contents.)
Is ...
Using Visual Studio 2008, windows forms, C#, .NET 2.0 ...
Is there a code-less way to get a control (it happens to be a PictureBox in my case) to stay centered as the window is resized? In other words, using some combination of property settings rather than writing code by hand to keep the element centered.
For example, there's a butt...
Hi all, I'm having the weirdest problem here with a Windows App written in c#.
Although there is absolutely nothing special about it, the main window works perfectly well on the Primary monitor and on any Secondary monitor when the latter is configured to stand on the right of the Primary monitor. However, when I reconfigure the second...
Hi, I have a webpage with a fluid layout with a 100% width.
When I resize browser window the elements in the page overlap.
I would create an effect similar to this website http://bologna.bakeca.it/ that when window is smaller than a fixed width stop resizing.
...
The Situation
I have an application that renders a colour gradiant into a Jpanel via overriding the paintComponent method. The algorithm is setup so that when the window is resized it recreates the colour gradient to refill the JFrame's new dimensions.
Even though the calculation for the gradient values only takes 10 - 30 ms (dependi...