resize

How can I remove the resize corner from an NSPanel that is an HUD Window

I'm trying to remove the resize corner from an NSPanel HUD styles. This is what I'm trying right now. NSUInteger currentStyleMask = [somePanel styleMask]; [somePanel setStyleMask: currentStyleMask | !NSResizableWindowMask]; I also get a warning that NSWindow may not respond to setStyleMask and it isn't defined in NSWindow.h, however i...

Searching for a Java layoutmanager which hides elements if space is getting short

Hi, I'm searching for a Java layoutmanager which is able to automatically hide (less important) elements, defined by me, if the user scales down the window size. For example an icon in a row of a label and a JTextField, which is only there to visually enhance the form. If the user resizes the window to a minimum size, the icon should d...

UIButton Buy Now effect

Hi. I want to make a "Buy Now" button in my Application, which should work the same way as the one in the App Store, but I dont know how to resize the UIButton with an animation. I have tried the following, but it resized the button at once and not as an animation: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration...

Delphi 7: Application scaling

On my notebook with a screen resolution of 1280x800 I've developed an application. Now I want to use it on a desktop computer with a resolution of 1600x1200. Of course, it's too small on the desktop computer. I've set the sizes so that I could see the whole form on my notebook. But on the desktop computer, everything should be resized. ...

java swing resize

hello, I am writing a library where i am passed in a Container (usually JPanel) and have an xml specification for different controls, their locations, size and other attributes. i have to create those controls at runtime and add it to the component. What's a good way to handle resizing of the parent Container? ...

How to resize the original image into a common size of image in Java?

In Java, how can I resize an image into a default size for any kind or size of image? ...

Resizing Controls At runtime.

Hi All Does anybody know of any sample code laying around anywhere that would enable me to resize a picturebox at runtime when the mouse cursor is draging the bottom right edge of the control? Any help at all will be appreciated. Thank you ...

Is it possible to resize an embedded .mov?

I embed .mov clips that sometimes are bigger than the place where I show it, so I want to resize the clip. Have tried with width and height but that only changes the area to display it; it does not resize the actual movie. Is it possible to resize the movie size? If yes, how? ...

Resize image with ratio using PHP

Hello, Say I've got some square images which I want to resize to rectangle images with the ratio 16:9. What is the best way to do it using PHP? ...

WPF- Resizing Listbox Contents according to Listbox dimensions

Hello, I am attempting to resize the contents of my listbox according to the listbox itself. This is being done in WPF. Any ideas on how this might be possible? I have been searching and have not come up with anything obtainable... Any helpful ideas are appreciated, Thanks! ...

VB.NET - Creating, resizing and appending images

I have two bmp files: footer.bmp: 200 x 200 product.bmp: 1000 x 1000 I want to create a new bmp file with 200 x 500: Append the footer.bmp into the bottom of the new image - position (0, 300) Resize the product.bmp to 200 x 300 and position into (0, 0) How do I do this using VB.NET? Dim oBitmap As New Bitmap(200, 500) Dim oGraph...

How to change the height of a webview on Runtime??

I have a webview and a table containing 4 buttons. I have set the height of the webview to 400px, so that the buttons are displayed at the bottom of the screen, in portrait mode. My problem is, when changed to landscape mode the buttons are not visible. So I need to change the height of the webview on runtime, when orientation is changed...

What are the units for form widths and heights in VBA?

I'm programming VBA for Word 2007. I've created a UserForm which I need to resize with script. I noticed that its not pixels Me.Width = pixelW // form appears about 20% larger than the pixel width And its not twips either Me.Width = (((1 / TwipsPerPixelX()) * pixelW)) / 1) // form appears very small So how are form widths an...

How to resize NSOutlineView column when scroller appears/disappears?

This ought to be very basic but after trying for an hour or so I can't figure out how to do this correctly: I have a NSOutline view with two columns, of which the right one should always be fully visible. The enclosing NSScrollView is set to show a vertical scroller only. Now whenever the vertical scroller appears it covers part of the ...

How to resize an image in .NET with transparency, both GIFs and PNGs, keeping transparency info.

Hi, i found a lot of questions about resizing images in .NET and whatnot, but none of them seemed to talk about resizing images that have transparency (both 1bit like GIFs and w/ alpha channel like PNGs), trying obviously to keep that transparency. Maybe GDI/GDI+ is somewhat lacking of code to easily manage those scenarios or what else?...

Problem resizing JScrollPane and JTabbedPane

I have a problem with resizing some of my components in my java application. When I resize my main JFrame they keep their previous size instead of filling out the surrounding component. For example I have in my program a JTabbedPane within a tab of another JTabbedPane (which is located within the main JFrame). I make tabs added to the i...

Resize the picture into 100x100 size and load into that resized picture in JLabel?

I resized the picture into 100x100 size by using Graphics class and drawImage() method. But i can't load the resized the image into JLabel. Is possible to load a resized picture into JLabel? Image image = jfc.getSelectedFile(); ImageIcon Logo = new ImageIcon(image.getPath()); BufferedImage resizedImage = new BufferedImage(width,...

Remove the ability to resize an image pasted into a richtextbox and add an event to that image. C#

I have searhed high and low for a solution to this problem. I have no problem adding an Bitmap image into the richtextbox. The problem is that I don't want it to have the resize option to it. I want that one image to be SELECTED when I click on it, just like in most messengers, and to throw an onclick event. Any help in this area wou...

Dynamic resizing images cache

I use simple PHP code (zend framework) to resize jpg images on the fly. Problem is I always end up with HTTP 200 status, instead having 304 and allow browsers to cache images. I cant get apache headers, function_exists('apache_request_headers') is false, and in server variable I have only 'HTTP_ACCEPT' => 'image/png,image/*;q=0.8,*/*...

FancyBox resize width

I'm able to resize the height with the $.fancybox.resize(); part, but the width just doesn't update according to the new content. Thoughts? ...