Using CFFormGroup = "vbox"

I have a tab where I would like to spilt the available space
with 2/3 of it on the left and the other 1/3 on the right. I'd like
to put the CFINPUT controls on the left and a CFGRID on the right,
binding as needed. It seems that the only way I can accomplish this
layout is to put the CFINPUT and CFGRID controls into their own
panels each in their own VBOX controlled by one HBOX. I would
prefer to not have the panels and just use VBOX, but when doing
this, nothing ever shows on the right side.
Am I missing what VBOX should be able do?

I found some guidance on this at
http://cfdj.sys-con.com/read/101342_p.htm
"hbox" and "vbox" types are used when we want to position
CONTAINERS horizontally or vertically respectively, and
"horizontal" and "vertical" types when we want to position
CONTROLS.
My conclusion is that HBOX and VBOX are only effective with a
panel.

Similar Messages

  • How to install windows 7 on Imac late 2009 using Vmware/Vbox

    Hey guys. Here's the thing. I've installed Windows 8 on my imac late 2009 but then i realized that there's no bootcamp drivers for it (check image).
    everything works fine except for the video drivers that crash everytime when i install any driver (bootcamp or manually).
    So I've searched on many forums n i found a guy that could do that by using Vmware/Virtualbox by accessing the full disk n installing it from there.
    Here's what we wrote -> (http://forums.macrumors.com/showthread.php?t=1526883)
    "Thanks for the suggestions, but installing from usb wasn't working, and refit didn't recognise the external dvd drive too (it was in the list, but when i tried to load it i got an error).
    But i found a solution, not usual procedure but still good and easy to do.
    I installed virtualbox, created a virtual machine with the full disk access (you'll have to unmount all the partitions first and run virtualbox as root), started installing windows, when the copy of the files ended and the vm was rebooting i simply closed it and rebooted my imac and finished the installation directly on the imac, everything went well...
    Thanks again for the help"
    Important notes :
    - My superdrive is broken
    - I can't boot efi windows 7 (cause it needs efi 2.0)
    So i might ask u 2 things..
    1- Is there a way that i can install all those drivers on windows 8.
    2- Can u describe how he did that with Vmware/Virtualbox?

    I can't. Just like i said. My superdrive is broken so the only way is to boot from usb but my imac's efi firmware is 1.0 and to boot a windows 7 efi you must have at least efi firmware 2.0. I managed to install windows 8 cause it needed efi firmware 1.0 that's why.

  • Mouseout event in VBox

    I can't seem to detect a mouse event (MouseOut) on an
    Accordion menu. I can do it on the TabBar but am not able to do it
    on the children. I know I am missing something fundamental here.
    The purpose is to make Accordion (id=locations) property
    Visible=False when MouseOut occurs on the submenu. Any
    enlightenment would be appreciated greatly.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Canvas width="753" height="300"
    verticalScrollPolicy="off" horizontalScrollPolicy="off" x="0" y="0"
    >
    <mx:Script>
    <![CDATA[
    import mx.events.ItemClickEvent;
    import mx.controls.TabBar;
    import mx.collections.ArrayCollection;
    [Bindable]
    public var STATE_ARRAY:ArrayCollection = new
    ArrayCollection([
    {label:"Home", data:"Home"},
    {label:"Locations", data:"Locations"}
    public function leavemenu(event:MouseEvent):void
    locations.visible=false;
    public function testIt(event:MouseEvent):void
    if (event.target is Button)
    {textarea2.text=textarea2.text + 1;
    var index:int =
    bar.getChildIndex(DisplayObject(event.target));
    var tab:Button = Button(bar.getChildAt(index));
    if (tab.label=="Home")
    locations.visible=false;
    if (tab.label=="Locations")
    locations.visible=true;
    locations.x=tab.x;
    locations.y=bar.height+bar.y-2;
    locations.height=locations.numChildren*21;
    if (event.target is VBox)
    textarea2.text=textarea2.text + 2;
    ]]>
    </mx:Script>
    <mx:Canvas x="478" y="93" width="275" height="404"
    mouseOver="leavemenu(event)">
    </mx:Canvas>
    <mx:TabBar width="600" id="bar" x="0" y="72"
    mouseOver="testIt(event)"
    height="20">
    <mx:dataProvider>
    {STATE_ARRAY}
    </mx:dataProvider>
    </mx:TabBar>
    <mx:Accordion width="150" id="locations"
    visible="false"> <!--21 pixels height per line-->
    <mx:VBox label="Bethel, CT" width="100%" height="100%"
    mouseOver="testIt(event)">
    </mx:VBox>
    <mx:VBox label="Branford, CT" width="100%" height="100%"
    mouseOver="leavemenu(event)">
    </mx:VBox>
    </mx:Accordion>
    <mx:TextArea x="603" y="74" height="18" width="103"
    id="searchbox"/>
    <mx:Button x="707" y="74" label="Search" width="46"
    height="18" fontFamily="Arial"/>
    <mx:TextArea x="327" y="28" id="textarea2"/>
    </mx:Canvas>
    <mx:Image x="0" y="93" source="images/DSC02878.JPG" />
    <mx:TextArea id="textarea1" width="150" x="92" y="546"
    visible="true"/>
    </mx:Application>

    Hi,
    The following example uses the vbox mouse wheel event to control the list box selected index, its just a simple test but it shows that vbox can accept the mousewheel event- one small caveat the vbox has to gain the mouse focus which requires it to be clicked on first in this example.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" creationComplete="appInit()">
    <fx:Script>
    <![CDATA[
    import mx.events.FlexEvent;
    import mx.collections.ArrayCollection;
    [Bindable] private var myData:ArrayCollection= new ArrayCollection([
    {Key:1,state:'ACT',name:'Australian Capital Territory'},
    {Key:2,state:'NSW',name:'New South Wales'},
    {Key:3,state:'NT',name:'Northern Territory'},
    {Key:4,state:'QLD',name:'Queensland'},
    {Key:5,state:'SA',name:'South Australia'},
    {Key:6,state:'TAS',name:'Tasmania'},
    {Key:6,state:'WA',name:'Western Australia'},
    {Key:7,state:'VIC',name:'Victoria'}]);
    private function appInit(): void
    myBox.addEventListener(MouseEvent.MOUSE_WHEEL,mouseScroller);
    protected function button1_clickHandler(event:MouseEvent):void
    if (lst.height==115) lst.height=300 else lst.height=115;
    private function mouseScroller(e:MouseEvent): void
    if (e.delta < 0 && lst.selectedIndex > 0) lst.selectedIndex -=1;
    if (e.delta > 0 && lst.selectedIndex < myData.length) lst.selectedIndex +=1;
    ]]>
    </fx:Script>
    <s:List id="lst" x="113" y="77" width="236" height="115" dataProvider="{myData}" labelField="name"></s:List>
    <s:Button x="156" y="48" label="Change Height" click="button1_clickHandler(event)"/>
    <mx:VBox x="371" y="48" width="200" height="200" backgroundColor="#726E6E" id="myBox">
    </mx:VBox>
    </s:Application>

  • TitledPane in a VBox ... TitledPane ignores maxSize

    Hi,
    I want to use a VBox instead of an Accordion, so i can have more TitledPanes expanded than one.
    <?xml version="1.0" encoding="UTF-8"?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.control.*?>
    <VBox xmlns:fx="http://javafx.com/fxml">
         <children>
              <TitledPane VBox.vgrow="ALWAYS">
                   <text>Navigation</text>
                   <content>
                        <TreeView showRoot="false" >
                             <root>
                                  <TreeItem value="Documents">
                                       <children>
                                            <TreeItem value="Item1" />
                                       </children>
                                  </TreeItem>
                             </root>
                        </TreeView>
                   </content>
              </TitledPane>
              <TitledPane  VBox.vgrow="ALWAYS">
                   <text>Navigation</text>
                   <content>
                        <TabPane tabClosingPolicy="UNAVAILABLE">
                             <tabs>
                                  <Tab>
                                       <content>
                                            <ListView/>
                                       </content>
                                       <text>tab1</text>
                                  </Tab>
                                  <Tab>
                                       <content>
                                            <ListView/>
                                       </content>
                                       <text>tab2</text>
                                  </Tab>
                             </tabs>
                        </TabPane>
                   </content>
              </TitledPane>
         </children>
    </VBox>The strange thing is, that the TitledPanes wont resize correctly ... Its just working if I remove the VBox.vgrow ... but than the TitledPanes wont resize over a maximum Height, even if I set Double.Max_Value as maxHeight.
    Anyone has a Idea how to manage these TitledPanes in a VBox?

    In before: thanks for the JIRA-Entry, I will watch it! :)
    In build 10 you are not allowed to set maxWidth and prefWidth in the content-node of the TitledPane anymore.
    Like that:
    <VBox fx:id="sidebar" fx:controller="de.ibees.erp.offline.gui.main.SidebarController" xmlns:fx="http://javafx.com/fxml">
         <children>
              <TitledPane fx:id="navigation">
                   <text>Navigation</text>
                   <content prefHeight="1000">
                        <fx:include source="navigation.fxml"/>
                   </content>
              </TitledPane>
         </children>
    </VBox>So the little "fix" above wont work anymore.
    Now it seems like, the TitledPane will resize with the needed space of its content. So my components should try to get as much height as possible.
    So I tryed to set the minHeight property of my TitledPane-content-root-node (what a word ^^) to a high Value like Double.MAX_VALUE.
    <VBox fx:id="sidebar" fx:controller="de.ibees.erp.offline.gui.main.SidebarController" xmlns:fx="http://javafx.com/fxml">
         <children>
              <TitledPane fx:id="navigation">
                   <text>Navigation</text>
                   <content>
                        <StackPane  minHeight="$MAX_DOUBLE">
                             <children>
                                  <fx:include source="navigation.fxml"/>
                             </children>
                        </StackPane>
                   </content>
              </TitledPane>
         </children>
    </VBox>But this will result in a Freeze or a not starting application ... so I tryed a lower value like 2000 and I got the same behavior like with the older "fix".
    And again the scrollbars wont appear ... apparently because of the minHeight-value, since a "normal" TitledPane has build-in scrollbars (as I discovered :) )
    Anyone have some other ideas how to "strech" the content in the height?
    @swpalmer:
    I think its exactly the same problem you have ... currently we just found the shown solutions.
    For a real world application its maybe currently the best solution to use the Accordion and disclaim the use of multiple expanded TitledPanes, because it seems like there is "something going on" with the TitledPanes :).
    Maybe you should also try the build 10, because its seems to use the min- and maxSize-properties.

  • Vbox resize w/ nested children

    If I dynamically add items to a vbox control in my flex app,
    the vbox automatically adjusts it's height to accomodate the
    additional height needed to house the items I added.
    I am creating a custom control that uses a vbox as the parent
    control. I find that if I add controls to the vbox, then add
    controls to those controls (nested controls), the vbox does not
    adjust it's height. It seems to only adjust for it's own children,
    and not it's children's children.
    Can anyone direct me to the event or method in the vbox that
    I need to call for it to "auto-adjust" its height?
    I know I can use a Resize, but I'd rather not get into
    calculating what the new height should be. It'd be nice to just
    have the vbox do it itself if there is a method I can call to cause
    this to happen.

    Hmm, I'm thinking now that it could be that the parent vbox
    controls are being resized by flex before the child vbox controls.
    I can see that the children do get the proper height adjustment as
    I nest deeper, but the primary child does not adjust. The
    appearance is that the bottom portion of the nested child remains
    hidden behind it's parent.
    I'm going to try to dig a bit deeper and see if this is
    happening.

  • Dynamic resizing VBox

    Hello,
    I am implementing a scrollable List, whose Items can change in height dynamically. Currently, I'm using a VBox to align all element beneath each other, which works fine unless, the bounds of these elements change. However, if they do, the VBox will not react on this. So my question is: Has anybody solved this problem yet and give me some hints or (maybe) has something like an BetterVBox.fx?
    Best Regards,
    Matthias

    Hello,
    Take a look at JFXtras project at http://code.google.com/p/jfxtras/
    The main purpose of this project is to provide functionalities, we often miss in JavaFX SDK 1.0 Update 1.
    Currently these are Dialogs, Layouts, Testing, Asynchronous Worker (for pure JFX coding of multi threaded classes) and some other helpful APIs.
    Layout package includes the Grid class, a container, which takes care of it's children, when resizing happens. Together with Row and Cell classes, it provides great control about position, size and other attributes of Nodes.
    Reusable Grid sample application is also available for download.
    May be this helps you...
    Asghar
    Even available in ver. 0.1.1, the API works fine. You can download the source code and binary distribution.
    JFXtras community will be happy to receive feedbacks and contribution.
    Edited by: Asghar on Jan 19, 2009 10:13 PM

  • How can I implement a status bar at the bottom of a resizable application?

    Hello all,
    I am a JavaFx newbie and I am implementing an application (a Sokoban game), with a menu at the top of the frame and a gaming area covering the rest of the frame. To support the game, I have to load images at certain positions in the gaming area.
    The game also includes a level editor with another menubar and where images are set to other positions.
    I implemented this in another view, swiching from the game mode to the level editor mode and vice versa is just done by setting the other view visible. Up to now this works, here the important statements building these details:
    Group root = new Group();
    gameView = new Group(); // for gaming mode
    le_view = new Group()   // for level editor mode
    MenuBar gameMenubar = new MenuBar();
    Menu menuGame = new Menu(bundle.getString("MenuGame"));
    ... building the menu items and menues ...
    gameView.getChildren().add(gameMenubar);
    ImageView buildingView[][] = new ImageView[22][22];
    for (nCol = 0; nCol < 22; nCol++) {
        for (nRow = 0; nRow < 22; nRow++) {
            buildingView[nCol][nRow] = new ImageView();
            buildingView[nCol][nRow].setX(nCol * 26 + 5);
            buildingView[nCol][nRow].setY(nRow * 26 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
    gameView.setVisible(true);
    root.getChildren().add(gameView);
    ... same stuff to build the le_view ...
    le_View.setVisible(false);
    root.getChildren().add(le_View);
    Scene scene = new Scene(root, 800, 600, Color.CORNSILK); Now I want to introduce a status bar at the bottom of the frame, which of course has to follow the bottom of the frame, if it is resized. And of course the menu and the status bar should not grow vertically, if the height of the frame is increased.
    The implementation seems to be easy with StackPane for the frame and one BorderPane for each mode.
    For the first step I only tried implementing the game mode with only one BorderPane (just setting the menu, the gaming area and the status bar each into a HBox and setting these three HBoxes at the top, into the center and at the bottom). I also tried this via GridPane and via VBox; I always get any erroneous behaviour:
    Either the menubar is visible, but the menus do not pop up the menu items, or the anchor point of the menu and of gaming area are set 100 pixels left of the left frame border and move into the frame when the frame width is increased, or the menu is set 20 pixels below the top of the frame, or HBox with the menu grows when the frame height is increased, so that the anchor point of the gaming area moves down.
    Can you describe me a correct construction of such a frame? Thanks in advance.
    Best regards
    Gerhard

    Hello Gerhard,
    Glad the code helped, thanks for a fun layout exercise.
    For the draft code I just pulled an icon off the internet over a http connection.
    If you haven't done so already place any icons and graphics you need local to your project, so that resource lookups like:
    Image img = new Image("http://www.julepstudios.com/images/close-icon.png");become
    Image img = new Image("close-icon.png");then performance may improve.
    Another possible reason for your performance problem could be that when you use a vbox, the vbox content can overflow the area of the borderpane center and might be sitting on top of the menu pane, making you unable to click the menu (which is what happens to me when I try that with the draft program with the vbox wrapping mod, then resize the scene to make it smaller). This was a trick which caught me and the reason that I used a Group originally rather than a vbox. I found a vbox still works but you need to tweak things a bit. The trick I saw was that the order in which you add stuff to the borderpane is important. The borderpane acts like a stack where the last thing added floats over the top of everything else if you size the scene small enough. For your project you want the menu on top always, so it always needs to be the last thing added to the borderpane, but when you swap in the level pane for the game pane, then back out again, the game pane can end up on top of the menu which makes the menu seem like you can't click it (only when the scene is sized small enough). It was quite a subtle bug which took me a little while to work out what was happening. For me the solution was to add just one vbox to the center of the border, and then swap the game pane and the level editor in and out of the vbox, that way the center of the layout always stayed behind the menu bar and the status bar.
    I added some revisions to reflect the comments above and placed some comments in the code to note what was changed and why.
    public class SampleGameLayoutRevised extends Application {
      public static void main(String[] args) { Application.launch(args); }
      public void start(Stage stage) throws Exception {
        final BorderPane gameLayout = new BorderPane();
        final Group gameView = new Group();
        final MenuBar gameMenubar = new MenuBar();
        final Menu gameMenu = new Menu("Mode");
        final VBox centerView = new VBox();
        centerView.setStyle("-fx-background-color: darkgreen");  // we set a background color on the center view to check if it overwrites the game menu.
        MenuItem playGameMenu = new MenuItem("Play Game");
        MenuItem levelEditMenu = new MenuItem("Edit Levels");
        gameMenu.getItems().add(playGameMenu);
        gameMenu.getItems().add(levelEditMenu);
        gameMenubar.getMenus().add(gameMenu);
        final StackPane levelEditView = new StackPane();
        levelEditView.getChildren().add(new Text("Level Editor"));
        ImageView buildingView[][] = new ImageView[22][22];
        Image img = new Image("http://www.julepstudios.com/images/close-icon.png");  // use of http here is just for example, instead use an image resource from your project files.
        for (int nCol = 0; nCol < 22; nCol++) {
          for (int nRow = 0; nRow < 22; nRow++) {
            ImageView imgView = new ImageView(img);
            imgView.setScaleX(0.5);
            imgView.setScaleY(0.5);
            buildingView[nCol][nRow] = imgView;
            buildingView[nCol][nRow].setX(nCol * 20 + 5);
            buildingView[nCol][nRow].setY(nRow * 20 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
        final VBox statusBar = new VBox();
        final Text statusText = new Text("Playing Game");
        statusBar.getChildren().add(statusText);
        statusBar.setStyle("-fx-background-color: cornsilk"); // we set a background color on the status bar,
                                                              // because we can't rely on the scene background color
                                                              // because, if the scene is sized small, the status bar will start to overlay the game view
                                                              // and if we don't explicitly set the statusBar background the center view will start
                                                              // to bleed through the transparent background of the statusBar.
        gameLayout.setCenter(centerView); // we add the centerview first and we never change it, instead we put it's changeable contents in a vbox and change out the vbox content.
        gameLayout.setBottom(statusBar);
        gameLayout.setTop(gameMenubar);   // note the game layout is the last thing added to the borderpane so it will always stay on top if the border pane is resized.
        playGameMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(gameView);
            statusText.setText("Playing Game");
        levelEditMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(levelEditView);
            statusText.setText("Editing Level");
        playGameMenu.fire();
        Scene scene = new Scene(gameLayout, 800, 600, Color.CORNSILK);
        stage.setScene(scene);
        stage.show();
    }Other than that I am not sure of a reason for the slowdown you are seeing. In my experience JavaFX has been quick and responsive for the tasks I have been using it for. Admittedly, I just use if for a bunch of small trial projects, but I've never seen it unresponsive for a minute.
    - John

  • New BT Vision Box - Why no Freeview HD?

    Why does the new BT vision box not support the DVB-T2 standard required for HD freeview? If BT is serious about competing with Sky and Virgin it needs to have 'live' HD services and better sports content.
    I understand that the content issue is being addressed with the ofcom ruling on Sky’s pricing of its sports channels, but the hardware needs to be able to compete too.
    I have read elsewhere on the net that the next generation box will support T2, but how long will we have to wait for that? The DVB-T2 standards have been around for a number of years and I think it is quite short sighted of BT to bring a 'new' box to market so close to a freeview HD launch without that capability. They should have waited a few months and included it from the start.
    I bet they release a new one with DVB-T2 HD capability 2 weeks before the BBC/BT canvas box comes out and I would wager it won’t support the canvas platform!
    I hope BT get this sorted soon, I would love to use my Vbox instead of my Sky box (the HD box is very flaky) but until these issues are sorted I can’t use it for anything else other than a 'bedroom box'
    As a BT shareholder and lover of all things tech, these little things worry me. Please sort it BT
    Chris.
    Solved!
    Go to Solution.

    That piece about the software upgrade is not correct... Bt have stated to me on many occasions that a new box is required as the hardware is incompatiable.. the HD you speak off (which confuses their call reps sometimes!) is for Streaming HD only via the internet. The Codec's are there I understand, but the physical chip is not the right one..
    The Chipsets Must/are out there as Humax have them in their boxs!
    My feelings are, you wont see a new box out of BT until Project Canvas comes to fruition at which point you will see a Freeview HD box from BT with Vision on Demand plus Content streaming over the Internet. At which point you will see a complete relaunch of BT Vision into a much more Internet Centred Product, prehaps offering a TV based Web Browser in addition to the BT Vision Library, Project Canvas Content/functionality etc.. You may start to see Linear Channels appearing via your ADSL service too at this point.. I would imagine this would happen "In time for Christmas 2010".. 
    You may see a "Projet Canvas capable *with sw upgrade*" HD or SD box appear before the world cup with heavy promotion , but nobody knows!
    The only things you will probably see out of BT now will be more "Streamed/Downloadable" HD Content, and possibly Sky Sports as either a Linear or PPV Service.
    Fingers crossed and a lot of patience required if you want Freeview HD via BT Vision.. I know Im waiting, Cant see the point of getting it now over Sky..
    JC

  • Saving dynamic objects in a container to a dataGrid

    I have an app which contains a dataGrid and a VBox container.
    dataGrid columns = username | objects
    VBox = holds children, objects (SWFLoaders)
    How would I be able to get the children back out of the
    dataGrid / save them to the dataGrid? Right now I'm using a
    VBox.getChildren(); and a dataGrid.selectedItem.objects =
    VBox.getChildren(); to get the information in. Is there any way to
    render it back out to the VBox so each user could have a different
    set of objects?
    Editing to show what the getChildren is returning - >
    AppName1.VBox.childName1,AppName1.VBox.childName2,AppName1.VBox.childName3,
    (etc)
    Any help, much appreciated.

    peterent:
    Let me try to clarify.
    I'm using a VBox to visually display a series of graphics. I
    am getting those graphics into the VBox by adding them as children.
    I'm using a dataGrid to hold data about a user, and it is set
    up to hold multiple users. Each user has a series of data that is
    redisplayed when you select their index in the datagrid. This is
    all textual data, so I figured out how to get it to save into the
    datagrid without too much trouble. Also I figured out how to
    redisplay the selected data once it was out.
    (Every column in the datagrid is set to not be visible except
    for the name)
    The big problem I'm having is turning the children of the
    VBox into something that would a> save easily to the dataGrid
    and b> load easily back into the VBox. This way, in addition to
    the data that I already have for each user, I could also save a
    series of graphics, that I could load back in at a later time into
    the VBox.
    I kinda went down the roads of considering using states
    today. But I don't really know how to dynamically generate a state
    which would then save into a dataGrid, and then have that state
    work for many different end-users.
    So, I hope this cleared things up a little bit. If not, or if
    you think you might know what I'm sniffing at but aren't totally
    sure, I could show you my source / app.

  • Custom ItemRenderer makes the column non editable

    Hi Folks,
    I have a DataGrid which s editable, I've created a custom ItemRenderer to deal with special format needed for Date variables, for that I extended the mx:Text class in order to get access to the listData.dataField variable.
    The problem is that this makes the column non-editable, the other column in the table are editabe.
    When I used a VBox container the column was editable however I didn't get access to the listData, which I need for the dataField variable.
    Any help will be appreciated.
    Thanks,
    MR.
    Here is the my DateItemRenderer code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Text xmlns:fx="http://ns.adobe.com/mxml/2009"
                                    xmlns:s="library://ns.adobe.com/flex/spark"
                                    xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
         </fx:Declarations>
         <fx:Script>
              <![CDATA[
                   import aslib.common.Constants;
                   import aslib.common.Utils;
                   import aslib.connection.JSONConnector;
                   import mx.controls.dataGridClasses.DataGridListData;
                   import mx.controls.listClasses.ListData;
                   import mx.formatters.DateFormatter;
                   [Bindable]
                   private var _dispValue:String;               
                   public function dateStr(val:Object):String {
                        var innerDt:Date;
                        if(!(val is Date))
                             innerDt = Utils.convertDateStr(val as String);
                        else
                             innerDt = val as Date;
                        if(innerDt){
                             var df:DateFormatter = new DateFormatter();
                             df.formatString = "DD/MM/YYYY";
                             var formatedDate:String = df.format(innerDt);                                                       
                             return formatedDate;
                        }else{
                             return "";
                   public override function set data(value:Object):void {
                        var date:Object = value[(listData as DataGridListData).dataField];
                        if(date){
                             _dispValue = dateStr(date);
              ]]>
         </fx:Script>
         <mx:text>{_dispValue}</mx:text>
    </mx:Text>

    OK, found the issue, forgot to add 'super.data = value' in the set data method...

  • Accessing floppy disk in Solaris 10 u5 VirtualBox Virtual Machine

    Hi,
    I cannot access my host floppy drive from my Solaris 10 u5 x86 64-bit VM on a WinXP host using VirtualBox 2.1.0. When I select "Mount Floppy A: from the VM window, the floppy is apparently mounted, as I can see disk activity. However, no floppy icon comes up on my Desktop, there is no /floppy, and I can't otherwise find the "mounted" drive.
    I can access CD-ROMs using my VM with no problem: a CD-ROM icon appears on my Desktop.
    Can anyone else using Solaris 10 as a guest on a Windows host access their floppy drives?
    Any help would be greatly appreciated. I have asked this question in the Vbox forums, but evidently only a couple of users use SUN Vbox for Solaris guests, which I find remarkable.
    Thanks.

    I finally got the Solaris 10 VM to recognize the floppy. ACPI must be enabled for the guest. See:
    http://forums.virtualbox.org/viewtopic.php?f=4&t=13599

  • Screen resolution problem for components in a canvas

    Hi,
    I am developing a Flex application, and I am using more than
    one canvases in a single page(with in application tag).
    And one canvas has elements like Chart, datagrid, legent
    & a label.
    Width & Height I gave to canvas and all its elements
    (except legend & label) is in percentages
    The problem I am facing is that,
    when I change the screen resolution, and
    when I press F11(full screen) in IE, the all objects except
    legend & label are increasing/decreasing, and in some cases
    lagend & label are overlapping in the chart & data grid.
    Could anybody please advise what I need to follow to
    eliminate these kind of problems.
    Thanks in advance.
    Pavan

    Ooooooh, haha my bad, I didn't realize you were talking about
    relative positioning on your app.
    Here's what's happening. Your component/application is in
    ABSOLUTE layout mode, so you can specify coordinates for where
    controls and components should be placed. When the size of the
    application changes, these coordinates are hard-coded, and they
    will always display in the same place, which can case them to run
    into components that have been resized to fit the new application
    size. Now fixing those numbers is not easy. In fact, I don't know
    of any way to make those numbers dynamic so they adjust when the
    application size adjusts.
    Instead, I suggest using constraints or Vbox/Hbox rather than
    hardcoded coordinates. With constraints, you can specify how far
    your Legend component is from the edges of the container it's in.
    Or, you can use the VBox or HBox so your component is always in the
    place it needs to be.
    <mx:HBox width="80%" height="50%" top="10" left="10">
    <mx:PieChart id="piechart1">
    <mx:series>
    <mx:PieSeries displayName="Series 1" field=""/>
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{piechart1}"/>
    </mx:HBox>
    In this example, You can see I set top and left to 10. This
    means that my HBox will be exactly 10 pixels from the top and left
    side of my application (or container, or whatever it's confined
    to). The Piechart and Legend fit neatly inside the HBox, and
    because it's an HBox, they will be side by side horizontally.
    If you need spacing between your chart and legend, you can
    always use the Spacer control under Layout.
    <mx:HBox width="80%" height="50%" top="10" left="10">
    <mx:PieChart id="piechart1">
    <mx:series>
    <mx:PieSeries displayName="Series 1" field=""/>
    </mx:series>
    </mx:PieChart>
    <mx:Spacer width="100%"/>
    <mx:Legend dataProvider="{piechart1}"/>
    </mx:HBox>
    As you can see, the Spacer control is separating our chart
    and the Legend by a width specified. Always use a percentage here,
    as you'll run into problems I talked about in my previous post.
    100% means the chart and the Legend will be as far away as they can
    be while staying within the Hbox container. If you decreased it to
    50%, they would only be half as far away.
    Hope this helps.
    EDIT:
    One last example of a pie chart and a Legend within a canvas.
    Each object has constraints to the canvas, which lets us put them
    whereever we want within the canvas:
    <mx:Canvas x="0" y="0" width="80%">
    <mx:PieChart id="piechart1" left="10" top="10">
    <mx:series>
    <mx:PieSeries displayName="Series 1" field=""/>
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{piechart1}" right="10"
    bottom="10"/>
    </mx:Canvas>
    From this example, the chart will always line up to be 10
    pixels from the top and left of our canvas. The Legend however,
    will always line up to be 10 pixels from the right side and bottom
    of our canvas. Adjusting the canvas size, the chart size, or the
    legend size will give you the desired distance between these two
    objects.

  • New tv

    This may be a stupid question, but can I plug my vision+ box into a tv with built-in freeview and still get all my on demand stuff?
    Solved!
    Go to Solution.

    guilbo wrote:
    You'll be fine. Just remember to connect the RF out of the box to the RF in of the TV and you can record 2 programmes using the Vbox tuners while watching a third on the TV tuner
    May I just add, that if you have one of the old silver vision boxes that also have an RF out connection, make sure that you set the RF channel to one which does not clash with the new Freeview mux channels.
    I spent a good hour after the last phase of the Rowrige transmitter, trying to figure out why my Freeview TV could not get any of the BBC channels.
    I finally realised that the RF output channel was sitting right on top of the BBC mux .
    I changed to RF out channel to its highest setting, and everything was fine.
    I wonder how many other people have been caught out by this
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • How to create a blog like list with items indented.

    Hey guys i know there has got to be a easy way to do this but quite frankly im just stuck. Im trying to create a blog like list kind of like what you see in wordpress or even facebook.
    I've tried using the vbox, vgroup and some other without any luck. I guess my basic problem is that once you have the vgroup laid out or the vbox laid out  how can you push the one container over to the right a little? in other words kind of lile a parent child relationship? how can i go about doing that?  should i be a looking at another component? how would you guys attempted this. Love to hear suggestions or see a snippet of code.
    thanks guys.
    Miguel

    I'm basically trying to recreate a list type of display like so. I think im close but my approach i believe lacks elegance.

  • Oracle10g on linux

    Hi,
    I am having dual boot on my PC for xp and linux.
    I have installed oracle 10g on xp.
    Now My question is :
    1.Can I access oracle from Linux operating system with sql commands and throughshell.
    2.Is it required me ti install separate oracle10 db on linux again to access it.
    3.where I will get the detail information of installing oracle on linux(version Fedora 6) and what sort of precaution
    required ?
    Bye....
    Thanks in advance !!!

    Hi user10619253!
    Normally it is possible to access an oracle database running on XP from Linux. But I wonder if this will work with a dual boot configuration!?! You can boot ether Windows or Linux but not both. So if windows is running with your DB your Linux is not and if Linux is running windows is not. Use vmware/vbox or any other virtualization software to solve this problem. This should the answer to your question number 1 and 2 (yes you have to install oracle separate on Linux if you want to access it from linux without virtualization).
    To you question number 3. Detailed information about installing Oracle 10g R2 on Linux is posted here:
    Link:[http://www.oracle.com/technology/pub/articles/smiley_10gdb_install.html]
    Hope that helps!
    yours sincerely

Maybe you are looking for

  • Profile manager won't clear previous settings

    While messing around with profile manager it do a couple basic things. Start FaceTime at login and map some network drives. This worked fine but when i went back in later to turn those off they continue to go through. When I log on to a different com

  • How do I delete duplicate photos from my iPhone 6?

    I have double the amount of pictures on my iPhone 6, which I actually should have. (Over 11,000). I did have "save original photo" with HDR off but have since turned it off. When I synced via iTunes with iPhoto Libray a couple weeks ago, somehow the

  • My macbook mid 2010,the under pad come out...what should i do?

    my macbook under pad,strech and start to come out..it look ugly....

  • How to increase the logout time

    Hi Guys, My PIA logs out for every 20 minutes. i do not want that happen. I want to increase the time for logout to 1 hour. Can any suggest me how to do that? Please help me.

  • Did iLife 06 kill my G5?

    Installed iLife06 on my G5 Built 1 website with iWeb Posted Site to my .mac account Went to save and quit--- Sipnning Beachball of death Went to Force Quit--- not possible. Manually shut off G5 Restarted G5-- no desktop. OS will not load. Restarted f