Thread View: adobe.photoshop.scripting
2 messages
2 total messages
Started by Robin_Massey
Thu, 02 Apr 2009 11:35
how to add radio button
Author: Robin_Massey
Date: Thu, 02 Apr 2009 11:35
Date: Thu, 02 Apr 2009 11:35
5 lines
714 bytes
714 bytes
hi, just looking to add some UI window to my script in which i want radio button and also 'OK' & 'Cancel' button in the same window so that i can take input from the user. thanx Robin
Re: how to add radio button
Author: Michael_L_Hale
Date: Thu, 02 Apr 2009 14:41
Date: Thu, 02 Apr 2009 14:41
12 lines
1185 bytes
1185 bytes
var dlg = new Window('dialog', 'Alert Box Builder',[100,100,480,225]);
dlg.alertBtnsPnl = dlg.add('panel', [35,15,325,55], 'Button alignment');
dlg.alertBtnsPnl.alignLeftRb = dlg.alertBtnsPnl.add('radiobutton',
[15,10,95,25], 'Left');
dlg.alertBtnsPnl.alignCenterRb = dlg.alertBtnsPnl.add('radiobutton',
[105,10,185,25], 'Center');
dlg.alertBtnsPnl.alignRightRb = dlg.alertBtnsPnl.add('radiobutton',
[195,10,275,25], 'Right');
dlg.alertBtnsPnl.alignCenterRb.value = true;
dlg.okBtn = dlg.add('button',[190,80,245,100],'OK');
dlg.cancelBtn = dlg.add('button',[255,80,315,100],'Cancel');
dlg.show();
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads