resizing

Java resizing my splitter frame

I have a jDialog with a splitter inside it. One side has a tree while the other side has a frame. Whenever I use setVisible(false) to hide the frame, the splitter resizes to filled the entire screen with the tree. Is there anyway to keep the tree side of the splitter the same size whether the frame is hidden or not? ...

WPF - Resizing Columns and Rows in a Grid

Ok, i'm using the grid to list various content. How can I get specific colums to resize while others stay fixed. That is, form pops up with specifc Initial column sizes for the controls... if the user RESIZES the form... i want certain 'memo' like fields to expand. How to do that? i seem to only be able to get ALL 'second' column...

Don't resize Images on a ItemRenderer

Hi! I think it is a question easy to answer, so I'll put it quick: Which parameter should I put not to automatically resize an Image that is put on an ItemRenderer? Ex (in which the image gets resized): <mx:AdvancedDataGridColumn headerText="estado" dataField="estado" width="30" editable="false" resizable="false"> <mx:itemRendere...

Scaling two Windows Forms controls while keeping the same ratio

I have 2 controls in a resize-able panel (1 datagridview and 1 textbox) with some space betwen and I need them both to scale in all directions with the panel. Problem is, since they're vertically stacked they run into each other when the panel scales vertically. I think I need some way to scale vertically while keeping the same ratio of ...

Resizing a UIView on iPhone at run-time.

I'm trying to resize my app's view whenever an iAd is scrolled down from the top. The problem is that in run-time, when i set the resized frame size of the relevant view, the resizing doesnt happen 9so the iAd is draw on top of the top 50 vertical pixels). If I set the UIView size at design-time, then I see that the view is resized (whe...

How to manage Images and Thumbnails ?

I wanna know how photos are managed on websites. Ex: A user uploads a Photo.. say which is 1024 * 768.. I have differnt size thumb nails on the website. 60 * 60 30 * 30 120 * 90 240 * 180 Since all the above images are not of the same aspec ratio. which is the best way to resize and crop images to suit my needs ? Note: Images wil...

WPF: Resizing a circle, keeping the center point instead of TopLeft?

Hi all, I'd like to resize a circle on my canvas with the help of a slider. This circle can be moved around on the canvas by some drag&drop stuff I did in code behind, so its position is not fixed. I have bound the slider's value to an ellipse's height and width. Unfortunately, when I use the slider, the circle gets resized with its to...

Forcing a JComponent to be square when being resized

I have a JComponent that does custom drawing, and overrides the following methods: public Dimension getPreferredSize() { return new Dimension(imageWidth, imageHeight); } public Dimension getMinimumSize() { return new Dimension(imageWidth, imageHeight); } Where imageWidth and imageHeight are the actual size of the image. I ha...

PHP GD library losing quality. Other ideas?

So I'm in the middle of working on a website that deals with photographs. A user uploads their original photograph and GD library creates a smaller sized image of the same photo. However, when comparing a manually sized down image with the GD one, the GD image seems to lose quite a bit of color quality like it had been slightly desatur...

flex 4: resize SWFLoader element to fit inside a VGroup element

Hello. I'm trying to resize a flash game inside a VGroup, no matter what configuration i try to set, some of my flash games are clipped out. i see only 80% of the actual flash screen. this is my code: <s:VGroup id="gameVGroup" clipAndEnableScrolling="true" height="480" maxHeight="480" width="540" maxWidth="540"> <mx:SWFLoader ...

iphone uiview - resize frame to fit subviews

Shouldn't there be a way to resize the frame of a UIView after you've added subviews so that the frame is the size needed to enclose all the subviews? If your subviews are added dynamically how can you determine what size the frame of the container view needs to be? This doesn't work: [myView sizeToFit]; ...

WPF - Expand Window to the Left

I have a WPF window with expandable panel (via Expander). The panel is on the left side of the window, and when expanded the window grows to fit the content. By default, windows are anchored to the top-left, so my window grows to the right. I'd like the window to grow to the left. I tried to do the following in the Window.SizeChanged ...

How do I get resize handles in QT?

Is there a way to get a resize effect between two widgets? Like say I have two QTextEdit boxes next to eachother, I want to get a handle between them so I can move it back and forth. Sort of in the same way that the textarea I'm writing in now has a handle at the bottom for making it larger. I'm using QT Creator and I can't seem to figu...

Auto resizing wpf elements with scroll bars (Rich text box, list box) vb

Hey guys, I'm having a problem where I have elements such as Listboxes and Rich Text boxes that I want to set to size automatically in xaml according to the size of the window, but I only want it to resize to the size of the window and then put scrollbars if the content is any bigger than that. Unfortunately, the only way I can get scr...

FlowLayoutPanel issues

Hi everyone, I hope you can help with this one - I'm having a really hard time with the FlowLayoutPanel. I have a Winforms app with a FLP(FlowLayoutPanel) with one child control - a tabControl(with a webBrowser in it). The form also has a TableLayoutPanel docked on top, and another TableLayoutPanel docked at the bottom. So my intentio...

IPhone UIView - How should a UIViewController handle sizing of a UIView when its size is unknown in advance?

(IPhone newbie question) I've subclassed a UIViewController and a UIView, and created a InitWithFrame for the view. My custom controller uses this to initialize its view, by frame, in its loadView function. I plan to use the controller and view in my code at different places. At times under a navigation controller, toolbar, both, neit...

How to resize an image in a QTextEdit?

How to click on the image, hold from a corner of it, and resize the image in the QTextEdit? Or at least how to get an image under cursor/that is selected in order to change width and hight? ...

mediaelement source resizing

msdn said that it is best to re-encode the media to the desired size using a media encoding tool if i wanna resize the media. however i can't leave the mediaelement without setting it's width and hight but there must be an workaround ...

stop vmware player from resizing on visual studio 2010 "start debug"

I started using a VMWare VM in order to have a clean environment in which to code. This works like a charm, but there is one issue that keeps bugging me. Every time I hit "start debugging" on my WPF application, the VMWare Player resizes out of "full screen mode" to a smaller size. Is this a problem any of you have solved? I did not fi...

Repositioning images on FormResize proportionally

Hello all! I have a Delphi form with TImages on it. Actually, it's a "fake" desktop with "icons" (the TImages). When the user resizes the form (scales it or maximizes it, for example) the icons on the form should align proportionally. Right now, I'm doing something like this with the images: ImageX.Left:=Round(ImageX.Left * (Width / ...