EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Spezifikationen Seite 102

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 304
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 101
CHAPTER 4: User-Interface Tools Managing control titles 102
X
This example demonstrates using characters and justify to vertically align the colons at the ends
of all the
dropdownlist control titles in a group. The same characters value is used for each
element's
title, and all are right-justified:
w.ddl1 = w.add("dropdownlist { title: 'Image format:' }");
w.ddl2 = w.add("dropdownlist { title: 'Background color:' }");
w.ddl3 = w.add("dropdownlist { title: 'Text color:' }");
w.ddl1.titleLayout = { alignment: ['left', 'center'], spacing: 3,
characters: 16, justify: 'right' };
w.ddl2.titleLayout = { alignment: ['left', 'center'], spacing: 3,
characters: 16, justify: 'right' };
w.ddl3.titleLayout = { alignment: ['left', 'center'], spacing: 3,
characters: 16, justify: 'right' };
Title truncation
If the space reserved for a title is not wide enough to display its entire text, set the truncate property to
control the appearance of the truncated text. If
truncate is middle, characters are removed from the
middle of the text and replaced with an ellipsis (
...). For the value end, characters are removed from the
end of the text and replaced with an ellipsis. If
truncate is none or is not defined, characters are removed
from the end, without any replacement ellipsis character.
This example demonstrates the effect of all three options on the same title string:
w.btn1 = w.add("iconbutton { title: 'Start 123456 End', image: 'SystemWarningIcon' }");
w.btn2 = w.add("iconbutton { title: 'Start 123456 End', image: 'SystemWarningIcon' }");
w.btn3 = w.add("iconbutton { title: 'Start 123456 End', image: 'SystemWarningIcon' }");
w.btn1.titleLayout = { characters: 8, truncate: 'middle' };
w.btn2.titleLayout = { characters: 8, truncate: 'end' };
w.btn3.titleLayout = { characters: 8, truncate: 'none' };
Seitenansicht 101
1 2 ... 97 98 99 100 101 102 103 104 105 106 107 ... 303 304

Kommentare zu diesen Handbüchern

Keine Kommentare