Page 1 of 1

Need help setting up a UI

Posted: October 10th, 2013, 7:26 am
by zioteo
Hi everyone! I'm trying writing a script with at the top a tabbed panel and at the bottom a text line with my copyright, the problem is that when I run the script, the text appears ON the tabbed panel, this is my code UI:

Code: Select all

res = "group{orientation:'cloumn', alignment:['bottom', 'top'],\
                myTabbedPanel: Panel{type:'tabbedpanel', alignment:['fill', 'center'],\
                    myTab1: Panel{type:'tab', text:'Tab1',\
                        myTabContent1: Button{text:'tab button'},\
                        myDropDownList: DropDownList{properties:{items:['HIII','HELLO!']}},\
                        },\
                    myTab2: Panel{type:'tab', text:'Tab2',\
                        myTabContent2: RadioButton{text:'radio tab button'},\
                        },\
                    myTab3: Panel{type:'tab', text:'Tab3',\
                        },\
                    },\
                groupOne: Group{orientation:'row', alignment:['fill', 'bottom'],\
                    myCopy: StaticText{text:'MY TEXT'},\
                    myURL: Button{text:'Visit Website', preferredSize:['140', '30']},\
                    },\

Re: Need help setting up a UI

Posted: October 10th, 2013, 1:11 pm
by Paul Tuersley
You spelt column wrong on the first line.

Also, I've no idea what alignment:['bottom', 'top'] will do. The first value should indicate the horizontal behaviour, so left, right, center or fill.

Paul