Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 77806

Re: Can't place button to needed position.

$
0
0

Try to change:

wmyPanel.orientation = 'column'; // ?.orientation = "stack";

to

myPanel.orientation = 'stack'; // ?

 

At least the code below gives such UI:

UI stack.png

 

var w = new Window ("dialog", "UI", undefined, );

w.orientation = "stack";
var tpanel = w.add ("tabbedpanel");
tpanel.alignChildren = ["fill", "fill"];
tpanel.preferredSize = [300,300];
var base = tpanel.add ("tab", undefined, "Base");
var work= tpanel.add ("tab", undefined, "Work");
var use = tpanel.add ("tab", undefined, "Use");
var buttonAbout = w.add('button', [0, 0, 20, 20], '?');
buttonAbout.alignment = ['right', 'top'];
w.show ();

Viewing all articles
Browse latest Browse all 77806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>