Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in tabBarControls and ComponentXML?

    Maybe related to this one:
    http://forums.smartclient.com/showthread.php?t=26342

    I basically try to add tabBarControls to a TabBar, but it seems they're just ignored.

    Code:
    <TabSet ID="TabSet0" autoDraw="true" width="100%" height="100%">
        <tabs>
            <Tab title="Tab0">
                <pane><Canvas ref="PortalLayout0"/></pane>
                <ID>Tab0</ID>
            </Tab>
        </tabs>
        <destroyPanes>false</destroyPanes>
        <tabBarControls>
            <IButton id="one" title="Click me" width="200" />
            <Button id ="two" title="Click me" width="200" />
        </tabBarControls>
    </TabSet>
    When this is loaded into VisualBuilder, it gets converted to

    Code:
    <TabSet ID="TabSet0" autoDraw="true" width="100%" height="100%">
        <tabs>
            <Tab title="Tab0">
                <pane><Canvas ref="PortalLayout0"/></pane>
                <ID>Tab0</ID>
            </Tab>
        </tabs>
        <destroyPanes>false</destroyPanes>
        <tabBarControls>
            <value></value>
            <value></value>
        </tabBarControls>
    </TabSet>
    Bug or wrong syntax?
    The tabs work well....

    1. SmartClient Version: v8.3p_2013-04-24/PowerEdition Deployment (built 2013-04-24)

    2. FF 20.0.1 (dev and deployment mode), Chrome Version 26.0.1410.64 m, IE 10.0.9200.16540 (all on Windows 8)

    Thanks,
    fatzopilot

    #2
    At the moment you'd need to rearrange things like so:

    Code:
    <IButton id="one" autoDraw="false" title="Click me" width="200" />
    <Button id="two" autoDraw="false" title="Click me" width="200" />
    
    <TabSet ID="TabSet0" autoDraw="true" width="100%" height="100%">
        <tabs>
            <Tab title="Tab0">
                <pane><Canvas ref="PortalLayout0"/></pane>
                <ID>Tab0</ID>
            </Tab>
        </tabs>
        <destroyPanes>false</destroyPanes>
        <tabBarControls>
              <value>one</value>
              <value>two</value>
        </tabBarControls>
    </TabSet>
    In the future we'll also support the syntax you tried to use - but no ETA for that yet.

    Comment


      #3
      Thanks,

      the buttons appear, but is there a way to properly layout them?
      Currently, they just pile up beneath the tabs. I tried something like this to no avail:
      Code:
      <IButton ID="IButton1" width="200" autoDraw="true">
          <selected>false</selected>
          <title>Click me</title>
          <id>two</id>
          <layoutAlign>right</layoutAlign>
          <align>right</align>
      </IButton>
      Thanks,
      fatzopilot

      Comment


        #4
        Can you show what you specified for tabBarControls? And ideally, show the JavaScript translation.

        Comment


          #5
          Nevermind,

          the problem was the ID attribute that must be specified in uppercase latters.

          Thanks,
          fatzopilot

          Comment

          Working...
          X