Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to add radio button

New Here ,
Apr 02, 2009 Apr 02, 2009
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
TOPICS
Actions and scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
Apr 02, 2009 Apr 02, 2009
LATEST
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();
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines