layout

Rendering layout parts in Zend Framework

My app is supposed to work like this. First, the default Action of the Default controller (according to URL) does it's job. For the purpose of this question lets name it MyController and indexAction. Then it forwards ($this->_forward) to my LayoutController menuAction which renders navigation part (menu from database) and forwards to fo...

Programmatically define layout for printing images in .NET

When you print images in Windows Photo Viewer, you can define various options: Number of copies of each picture Paper size (Letter, legal, tabloid...) Layout (full page photo, 5x6, 5x7, etc) Is it using WIA? If not, what technology should be used? Any code/ready component available to accomplish the task by accessing those printing p...

problem with rebol vid panel and offset 0x0

This doesn't work panel1.layout: layout [ offset: 0x0 yuml-image: image img ] panel2.layout: layout [ offset: 0x0 area (yuml-command0) yellow ] panelbuttons.layout: layout [ button "Save" [request-save] button "Refresh" [request-refresh] button "Quit" [quit] ] Main: layout [ panel1: box 640x300 white return ...

Auto-expanding layout with Qt-Designer

I'm using the Qt Designer. I want to create a QVBoxLayout which will automatically expand to fill the whole window. The layout of the QVBoxLayout remains fixed. How can I cause the QVBoxLayout to expand and fill the entire window through the designer? ...

Error inflating basic framelayout only in Android 1.5

Hi, I have the following layout in XML (splashscreen.xml): <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/frmLayout" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/splash" android:...

WPF - Resizing controls within a window with resize

So I'm pretty new to WPF and I'm having trouble with the layout of my Window. Currently I have a WPF application with a Grid defined as such: <Grid.RowDefinitions> <RowDefinition Height="23" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.ColumnDefiniti...

Rendering absolutely positioned sprites over a regular Android layout

Hi, I've got a standard RelativeLayout laying out my Buttons and TextAreas. What I want to do now is be able to draw various sparks, flying cows etc. at arbitrary places on the screen on top of the whole thing. What's the best way to do this? Should I override onDraw() on the containing View and draw after calling super.onDraw()? Or is ...

Expand animation in android and inner size calculation (dimension)

To make it simple.I have a LinearLayout containing some details. It is scaled down to a two pixel line. When I click on the title above the LinearLayout. I'd like it to expand to the size of its content. I tried the ScaleAnimation class and it wors except it needs a scale factor. I'd like to be able to scale from 2pixel to realsize and...

WPF Grid & Collapsed Content

I've Got a Window with this basic layout: <Window MinHeight="72" MaxHeight="400" Height="Auto" MinWidth="460" MaxWidth="460"> <DockPanel> <!-- Footer --> <StackPanel DockPanel.Dock="Bottom"> ... </StackPanel> <Grid> <Grid.RowDefinitions> <RowDefinition ...

Android overlapping views

Hello, I'm new to Android and let me first tell you what I'm trying to achieve. Using sockets, I'm sending pictures from my computer's webcam every 50ms. In Android app, I've created my display that extends View. I've added this view to FrameLayout. Parallel thread is receiving images from server app (desktop) and refreshing my display....

Layout issue: autogrow label (SWT)

Hi, I'm using a GridLayout trying to make a label autogrow without hiding anything of its content. Here's a simple code to test: Everytime I press the button the label text grows larger, but only after I resize the window horizontally I get the correct layout. Is there any way to fix this without having to resize the window? I think I'v...

How can I change the style of an Progressbar to small?

I have some difficulties finding the correct way to specify that a progress bar should have the small indefinite style. I would be glad if somebody could provide an example for me and others that do a quick search for this information. ...

How do I add a Phonon VideoPlayer to QtDesigner form?

I can add a player object to my UI layout in the MainWindow constructor, but how do I use the widget container as a placeholder so I set properties and layout for the VideoPlayer in QtDesigner? ...

ExtJS resizable column layout

Hi, I am in need of layout with resizable columns. I have a panel with 3 grid panels inside, now I am using hbox layout in the outer panel to organize them and this is ok, but I want to have a separator, like in the border layout, to resize the columns. how is it possible? ...

how to specify x and y co-ordinate of textfield in java???

i'm making a calculator using java for which the position of textfield has to be specified. all i know is to specify the position using border layout but that can't be used here as the position of other buttons have to be specified.. so kindly help me ...

autoresizingMask for fixed margin sizes

In a view containing several subviews, one of the subviews should remain a fixed, non-zero distance from the top and bottom of the superview. In these images, this view is shown in gray: According to the documentation, this view should have a mask of UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth. However, this c...

Looks good on Chrome & IE...Bad on Firefox?

I know its my fault. I know by the way the height is working correctly with the packages and that I offset the problem (just to get a design done) by using a bunch of breaks (br tags) lol. Anyways, the site looks exactly how I want it to in chrome (minus the breaks (br tags) hack)...In firefox, its a mess. It actually looks good on IE.....

Equal height columns with no background

Here is an example code http://paste.ideaslabs.com/show/kmGATPRovx. How can I make the second block looks like the first one with more content in .front-content block? The most problem is the position of .front-description's bottom border. ...

Should I use many ContentPlaceHolders in ASP.NET MVC?

Recently I made a little site and want to rewrite it using ASP.NET MVC. At the same time I am going make some improvements: insert site map path, hierarchical menu on the side (current article should be selected) etc. Should I use individual ContentPlaceHolder for each such page part or just use one and create such large view model for ...

Zend Framework Common Layout and Modules

I have a next structure of my project: /application /modules /default /layouts ... /news ... /configs /layouts common.phtml Header and footer on all pages are the same. I have a block with changing content for different modules. It is not work now. Can you help me. May be you did th...