layout

BlackBerry - Custom Layout

Hi All, I am very much new to the Blacberry development environment. I am trying to make a simple calculator application. But when i implement buttons it is always displaying one below the another. I need to custom place the controls. Is there any way to make the layout custom so that i can place my controls as i wish. Thanks in advanc...

Horizontal scrollbar past the min-width point

HTML: <div id="mcolWrapper"> <div id="mcol"> <div class="wrapper"> content </div> </div> </div> <div id="lcol"> <div class="wrapper"> content </div> </div> <div id="rcol"> <div class="wrapper"> content </div> </div> CSS: #mcolWrapper { float: left; width: 100%; } #mcol { ma...

CSS layout theme like Molio, Pilu’s web-app-theme or Yui App Theme?

Hi, I am looking for css layout theme similar to Molio, Pilu’s web-app-theme or Yui App Theme. Anyone got any other recommendations? ...

How can I place element to position with Silverlight?

I want to draw rectangle to position what I get from startPoint, but now it places my rectangle to middle of PictureCanvas, when I want to put it in startPoint position private void DragSelectComponent_SelectionEnd(DragSelectEventArgs e) { Output.Text = "Start: " + e.StartPoint.ToString() + " End: " + e.EndPoint.ToString() + "\n...

Horizontal ListBox items layout problem.

I have horizontal ListBox. Here is code for it (removed some irrelevant): <ListBox Grid.Row="1" ItemContainerStyle="{StaticResource ListBoxUnselectableItemStyle}" ItemsSource="{Binding ...}" BorderThickness="0" Background="{x:Null}" ...

How to dump all (X, Y) positions of UIElements in a WPF Grid

I would like to know how to iterate through all the elements in a WPF Grid, and then access the absolute positioning values (X, Y) for all of these UIElements. ...

Centring a flow in Shoes

Can I center the contents of a flow in Shoes? I know that a paragraph can be centred like: para 'Centred paragrpah', :align=>'center' However, this does not work with flows: flow(:align=>'center') do … end No errors are brought up, but the contents remain left justified. ...

[Android] Changing LayoutParams programatically has no effect. Why?

I have a custom view, derived from Button, which I want to position at runtime, relative to another view. Because I don't know that other view's position yet when my view is being inflated (because layouting hasn't started), I leverage the onSizeChanged handler to set my view's position relative to the other view. In onSizeChanged: Lay...

WPF Layout of user control as a run

Hi In WPF, I want to create a Window that looks like the following: On the screen are four user control, #1, 2, 3, 4. As you can see, user control 2 should not be rendered as a box, but inlined. If this were a WPF flow document: 1, 3, 4 would be a paragraph (boxing) 2 a run (inlining) The reason is that 2 could be used i...

How to align the text to top of TextView?

How to align the text to top of a TextView? Equivalent Android API for Swings setInsets()? that is top of text should start be in (0,0) of TextView <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_pare...

Expression Blend's default LayoutRoot

Is there a way to change the default LayoutRoot type in Expression Blend 3? Currently, I'm prototyping in SketchFlow, and I prefer Canvas over the Grid, and it's annoying to change it for every new screen. ...

WPF: Grid layout - how can I get row and column of element with MouseMove or similar events, when cursor is over empty cell?

Hello, As I stated in title to this question - I have an WPF Grid based layout with two header rows and few empty ones. Grid has about 100 columns. I am trying to achieve the situation, in which I will be able to highlight the cell of empty row, when mouse is over it (and fire an event, when user will click this cell). I sketched my ...

Why is my "container" div not containing my floated elements?

I'm creating a website for my schools "Math Relay" competition. I have a "Container" div (with a white background), then a top-bar, left-bar, and right-bar div inside the container. left-bar and right-bar are both floated inside "Container". However, if you look in the image below you can see the right-bar has the grey background show...

Blackberry - set position of field on the screen?

I want to position my field at specified positions. ...

Very basic WPF layout question

Hi All, <StackPanel> <GroupBox> <StackPanel Orientation="Horizontal"> <ListBox></ListBox> </StackPanel> </GroupBox> </StackPanel> How do I get this listbox to be maxiumum size, i.e. fill the group box its in. I've tried width="auto" Height="auto", width="stretch...

100% div (with 10px margin on top of DIV)

Hay guys, I'm using this hack to get a cross browser 100% height DIV /* commented backslash hack \*/ html, body{height:100%;} /* end hack */ html,body {margin:0;padding:0} #outer{min-height:100%;height:auto;background:#ffffcc} * html #outer{height:100%;}/* ie6 and under*/ EDIT: However on my div i have a 1px top border and a 10px t...

How to force a certain UserControl design

I am writing a Base UserControl, that will be inherited by a bunch of other UserControls. I need to enforce a certain design for all these descendant controls (e.g. a couple of buttons must be on the top along with a label or two). The rest of the descendant UserControl area is free to have whatever on it. Initially, I thought that ...

ASP.NET: Custom layout for Wizard Control

Is there any way to change the default layout for Wizard Control? ...

iphone application layout

Hi there, I'm trying to get started with an iPhone application, I had a look around at other questions but i'm still sorta stuck so hopefully someone can help... First thing is I'm totally confused with the whole view concept, I'm more used to visual studio so I'm going to use the term 'form' to describe what I have in my head. I want...

Centering Content in Flex 4

Hi, I'm building a custom component that extends SkinnableContainer. I can center the content either vertically or horizontally inside it, but not both-- and that is what I need. I'm setting the layout to HorizontalLayout for the component and setting verticalAlign to middle. Then I'm creating a canvas to surround another component th...