resize

Cannot drag window in remote desktop.

When I use remote desktop to access my windows 2008 server from windows vista I cannot re size or drag any windows in the RDP session. I can RDP in and maximize windows and minimize just fine buy I cannot re size or move a window. Any help I cannot find anything on Google. ...

capture the last WM_SIZE

When I resize my window I want to tell another part of my program that my window has changed size. I read on MSDN that: WM SIZE Message The WM SIZE message is sent to a window after its size has changed. However, I receive the WM_SIZE even when dragging. I noticed that there is also a WM_SIZING message that is sent when my window is re...

Controls resize based on screen resolution

I have panel control. More controls are in panel.I set the dock property for panel as 'fill' .The panel are resized based on screen resolution. but the controls remains same.The controls in the panel are not resized based on screen solution. i have more labels and panels and text-boxs and button in the same page. How to set the dock...

Prevent a control in a grid to change its column width

Hello, I can't figure out how to manage properly the width of a grid column with a user control in one of its cell. I have this xaml for a window: <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto" /> <RowDefinition Height="auto" /> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Grid.Colu...

Fixing Chrome resizing behaviour

<div style="background-color:red;width: 300px;"> <div style="float:left;border:1px solid yellow;">AAA AAA AAA</div> <div style="float:left;border:1px solid green;">BBB BBB BBB</div> <div style="clear:both;"></div> </div> Pasting the above HTML here: http://htmledit.squarefree.com/ And then zoom out in Chrome, you will see tha...

jQuery resize event for div children

$("div.content-left > *, div.content-main > *" ).live('resize',function(){alert("Size changed")}); does not work, because the resize event only applies to window resizes. But in my case the divs change size late, because the content is loaded late by an ajax request - or by clicking a panel menu. I definatley need to avoid to register...

jQuery resize width on firefox

I'm doing some experiments with jquery n widths for a liquid column and I'm not sure why it isn't working on firefox. It works fine on IE6,7,8 Chrome, Opera(sluggish). I found some articles about firefox not recognizing the .resize attribute but no explanation/solution =\ $(document).ready(function(){ $(midCol).width((window,$(window).w...

possible to constrain jQuery resize to x or y axis, like drag constrain?

This jQuery lets you constrain drag movement so it occurs only on the axis specified: $("#draggable2").draggable({ axis: 'x' }); See: http://jqueryui.com/demos/draggable/#constrain-movement This is not legal jQuery but I wish it were: $("#Container").resizable({ minHeight: 150, containment: {axis:'y' } }); Is it possible to preven...

jQuery window resize

I have piece of javascript code, which should process when the browser window is resized. resize.style.marginRight=(resize.offsetWidth-$(this)[0].offsetWidth)+'px' Tryed this stuff (doesn't work): window.onresize = function(event) { resize.style.marginRight=(resize.offsetWidth-$(this)[0].offsetWidth)+'px' } Full code available - ht...

Resizing TextBox At Runtime in WPF

Hi All, Was just wondering how I would go about letting the user resize a TextBox control at runtime by dragging its corners in WPF. Less importantly, is the same technique used for the resizing of all controls? Thank you :) ...

Minimise a window in WPF?

How do you minimise a window programmatically when using windows wpf? I can seem to find a .resize attribute? ...

Change workarea size of Linux desktop

I'm trying to write a taskbar/panel for Linux (like fbpanel or pypanel) using GTK# and am a little hung up. I've created a Gtk.Window to act as the panel and positioned/resized it appropriately. I've also set its WindowTypeHint to Dock so that it remains on top of other windows. So far it 'looks' like a panel. However, if the panel i...

IE7 resize problems

i have a page that contains content which need to be dynamically changed according to the current page size. in order to do that, during the onload event, i attach some JS function to the "onresize" window event. it looks like that: window.onresize = function() { //do something here... }; This is working fine in any browse, except I...

UIView autoresize problem

Hey, I have a UIView with several subviews: one UIImageView and a couple of UIViews. When I change the frame property of the view, the imageView's size changes accordingly, but the rest of the subviews remain in their original size! I can't figure out what I'm doing wrong. Can anybody help? Thanks, ...

BlackBerry - How to resize and store image?

I need to scale image to small and store that image in to blackberry device (as a small image)? ...

C# Creating thumbnail (low quality and big size problem)

public void CreateThumbnail(Image img1, Photo photo, string targetDirectoryThumbs) { int newWidth = 700; int newHeight = 700; double ratio = 0; if (img1.Width > img1.Height) { ratio = img1.Width / (double)img1.Height; newHeight = (int)(ne...

Java (Swing): finding a component's *screen* size when the window is resized

I need to find a component's exact screen size in pixels when the main JFrame is resized. I've tried several things and couldn't find an easy way to do it: it probably have missed something obvious. BBBBB JFRAME BORDER BBB BZZZZZZZZZZZZZZZZZZZZZB BAAAAAAAAAAAAAAAAAAAAAB BCC1................DDB BCCC................DDB BCCC...............

C# GDI+ Image Resize Function

So my logic is flawed and I need a better and correct way to resize an image in my c# app I need a function similar to this setup public void ResizeImageForWeb(string OriginalFile, string NewFile, int MaxWidth, int MaxHeight, int Quality) { // Resize Code } Basically, I'm a web designer lost trying to programming a desktop app. ...

how to resize image

I am a little forgetful have made it many times and can not find the code from the last time I made it how do I get it to resize more than one picture i do like this Guid imageName; imageName = Guid.NewGuid(); string storePath = Server.MapPath("~") + "/MultipleUpload"; if (!Directory.Exists(storePath)) Directory.CreateDirectory(st...

How to apply that resize method?

I noticed this full flash site and wonderring http://www.houseoforange.nl/site/#/Photographers/Philip%20Riches/editorial%20women/ How can I apply the resize method like the way they did? Any examples might help me a lot. I have one main.swf and page.swf which loads within main.swf. My page.swf contains thumbnail images, and it's alrea...