1 Reply Latest reply on Feb 12, 2010 3:57 PM by Flex harUI

    Designing flexible width components

    jsd99 Level 3

      I've got an application which has to run at two different widths.

       

      First question, can I determine programatically how big the width is as defined in the embed tag of the browser?

       

      Next, I want to make the layouts as flexible as possible without having to hardcode different sizes of things depending on the current resolution.  For example, I have an HBox.  It should be constructed as follows:

      • fixed width button
      • fixed width button
      • flexible width progress bar
      • fixed width label
      • fixed width button
      • fixed width button

       

      If I just set the widths on the buttons & label to absolute pixel measurements, how do I make the progress bar expand automatically to fill the remaining space?