hbox

Flex - Vertically position children of a horizontal HBox

I have a custom HBox as so.... public class MyBar extends HBox { public function MyBar() { super(); this.height = 65; this.percentWidth = 100; var newButton:Button = new Button(); //..... newButton.y = 20; var spacer1:Spacer = new Spacer(); spacer1.percentWidth = 50; var spacer2:Spacer = new Spacer(); spacer2.percentWidth = 50; t...

Flex: container scrollbars in HBox

I have an HBox in my flex application. The problem is, when there are too many things inside the HBox a scroll bar appears at the bottom of the app. How can I make it appear in the HBox, so the scrollbar only scrolls thestuff inside the HBox and not the entire app? ...

How do I change a box components direction in Flex 3?

Hi, With mx:Box I can set the direction to be either "horizontal" or "vertical". I'd like to reverse the order of the components in the box though. For example: before: |button1| |button2| |button3| after: |button3| |button2| |button1| I've created a custom component that lives in a mx:Box and would like to do this in as simplest a...

how to center align a button in a hbox in flex ?

I have a VBox inside which I have 4 HBoxes. The second level HBox is initially hidden. When I click the label, 'Show more Options', the second level HBox is displayed. Now I have the space occupied by the 'second level HBOx' empty and the 'search' button appaers below the space. My first question is, Is there a way to position the Searc...

Horizontal align components inside HBox from Action Script

Is there any way to set horizontalAlign from Action Script not from mxml? ...

Hbox horizontalScrollPosition not working

Hi, I am applying hb.horizontalScrollPosition = value and it does not work with horizonalScrollPolicy = on/off. Is there any other way to achieve this? Thanks. ...

Fill an HBox in from the right? VBox from the bottom?

I only really need the HBox answer but figure that if we get a good answer in here it would help anyone trying to do a similar thing with a VBox. It would be nice to know this in both actionscript and MXML. So I have an HBox that I want some text aligned from the left and some radios from the right. Like so: __________________________...

JavaFX layouts question.

I am having some problem understanding layouts in JavaFX. Consider following code. Stage { title: "ListView test" scene: Scene { width: 400 height: 400 content: [ VBox { content: [ ListView { height: 200 width...

Does LaTeX have an array data structure?

Are there arrays in LaTeX? I don't mean the way to typeset arrays. I mean arrays as the data structure in LaTeX/TeX as a "programming language". I need to store a number of vbox-es or hbox-es in an array. It may be something like "an array of macros". More details: I have an environment that should typeset songs. I need to store some s...

Javafx Layout problem with VBox & HBoxes

When I run the following, I noticed spacing between nodes; My research revealed that - 1) If I do not add any text to win1 via setwininfo, then there is no problem. 2) When I include this code in a larger app, and when a button click is reveived from some where else, mysteriously the spacing gets corrected. 3) I tried binding the win1...

How do I change the size of an HBox in Flex to fit it's container?

I create an HBox, fill it with a grid of buttons, and set the scroll policy. When I resize the window, the stage changes size, and so does the HBox ... to a point. Once it reaches the height of the Grid it contains, it stops shrinking, like it has a "min-height". This ruins the scrollbar that I'm trying to establish in this case. I've ...

HBox children Component seperator

Hi, How could i add separating line around HBox children component?? like if i choose borderstyle as solid for the hbox, the problem is the line between the children component, like text components, who could i show it in effesent way, not just adding HBox to each element. ...

how to use zk hbox array ?

Hi, I am not sure how to use a zk Hbox Array. I am trying to create an array of ZK Hbox components and use it within a for block. void createRow(Component container, final Node fieldNode, FieldCreator [] fieldDescription) { final Vbox fieldsRows = new Vbox(); final Hbox fieldsRow = new Hbox(); final Hbox[] fieldBox; in...

how to use css to style a descendant (not a direct child) of an element?

Hi, I am trying to override the style of a descendant(not the direct child) of an element using css. Say, I am working on: <table id="z_d__h3-real" class="z-hbox"> <tbody> <tr valign="top"> ----- </tr> </tbody> </table> I want to override the style to set the valign of the tr element to "center". I tried doing: table....

Wrapping in xul:hbox

Hi, guys! I have strange problem with XUL layouts. My current code: <xul:vbox> <xul:hbox> .. some elements .. </xul:hbox> <xul:hbox> <xul:hbox> .. some elements .. </xul:hbox> <xul:hbox flex="1"> <my:button anon-id="btn1" label="Sample button 1"/> <my:button anon-id="btn2" label="Sample button 2"/> ... ...

Changing the background image of HBox

Hi, I have assigned a logo image of my software to HBox as follows - <mx:HBox id="logoBox" width="98%" textAlign="left" backgroundSize="100%" horizontalAlign="left" height="18%" backgroundImage="images/img_header_new_3-bg.jpg" verticalAlign="bottom" backgroundColor="#1573A4"> Now I need to change the backgroundImage to some other im...

How to set a Gtk Box to have two children

I have a Gtk::HBox which should contain two elements only. However, the constructor new Gtk::HBox() creates a box with three elements, so when I display my window, there is an ugly space where Gtk expects me to put a third element. I thought the Gtk api would provide an easy way to set the number of children, but it doesn't. Since Glade...