EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 70

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 69
CHAPTER 4: User-Interface Tools Types of controls 70
Checkbox
Allows the user to set a boolean state.
X Set the text property to assign an identifying text string that appears next to the
clickable box.
X The user can click to select or deselect the box, which shows a checkmark when
selected. The
value is true when it is selected (checked) and false when it is not.
When you create a
Checkbox, you can set its value property to specify its initial state
and appearance.
// Add a checkbox to control the buttons that dismiss an alert box
dlg.hasBtnsCb = dlg.add(‘checkbox’, undefined,
‘Should there be alert buttons?’);
dlg.hasBtnsCb.value = true;
RadioButton
Allows the user to select one choice among several.
X Set the text property to assign an identifying text string that appears next to the
clickable button.
X The value is true when the button is selected. The button shows the state in a
platform-specific manner, with a filled or empty dot, for example.
You group a related set of radio buttons by creating all the related elements one after
another. When any buttons value becomes true, the value of all other buttons in the
group becomes false. When you create a group of radio buttons, you should set the
state of one of them true:
var dlg = new Window(‘dialog’, ‘Alert Box Builder’);
dlg.alertBtnsPnl = dlg.add(‘panel’, undefined, ‘Button alignment’);
dlg.alertBtnsPnl.alignLeftRb = dlg.alertBtnsPnl.add(‘radiobutton’,
undefined, ‘Left’);
dlg.alertBtnsPnl.alignCenterRb = dlg.alertBtnsPnl.add(‘radiobutton’,
undefined, ‘Center’);
dlg.alertBtnsPnl.alignRightRb = dlg.alertBtnsPnl.add(‘radiobutton’,
undefined, ‘Right’);
dlg.alertBtnsPnl.alignCenterRb.value = true;
dlg.show();
Progressbar
Typically used to display the progress of a time-consuming operation. A colored bar
covers a percentage of the area of the control, representing the percentage
completion of the operation. The
value property reflects and controls how much of
the visible area is colored, relative to the maximum value (
maxvalue). By default the
range is 0 to 100, so the
value=50 when the operation is half done.
Slider
Typically used to select within a range of values. The slider is a horizontal bar with a
draggable indicator, and you can click a point on the slider bar to jump the indicator
to that location. The
value property reflects and controls the position of the indicator,
within the range determined by
minvalue and maxvalue. By default the range is 0 to
100, so setting
value=50 moves the indicator to the middle of the bar.
Seitenansicht 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare