UI trouble. Can't set button position on window

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
sedachov
Posts: 1
Joined: January 29th, 2015, 6:17 pm

January 30th, 2015, 5:34 am

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:
Attachments
scriptui trouble.png
scriptui trouble.png (6.8 KiB) Viewed 3541 times
Post Reply