Page 1 of 1

UI trouble. Can't set button position on window

Posted: January 30th, 2015, 5:34 am
by sedachov
Hello! Please help with my little ui building trouble)
I have a tabbed panel and one little button. And can't set correct position for this controls. I attach a picture with explanation and copy part of my code.

Code: Select all

    function buildUI(thisObject)
    {
        var myPanel = (thisObject instanceof Panel) ? thisObject : new Window("palette", "MyScript", undefined);
            myPanel.orientation = 'column'; // ?
            myPanel.alignChildren = ['fill', 'top'];
        var buttonAbout = myPanel.add('button', [0, 0, 20, 20], '?');
            buttonAbout.alignment = ['right', 'top']; //?
        var tabbedPanel = myPanel.add('tabbedpanel', undefined, '');
            tabbedPanel.orientation = 'column'; //?
            tabbedPanel.alignChildren = ['left', 'top'];
...
How i can place my control in needed positions?
P.S.: Sorry for my bad english :oops: