Форум Flasher.ru

Форум Flasher.ru (http://www.flasher.ru/forum/index.php)
-   Общие вопросы (http://www.flasher.ru/forum/forumdisplay.php?f=10)
-   -   Настройка цветов ScrollPane (http://www.flasher.ru/forum/showthread.php?t=50657)

Руиз Ав 29.10.2003 05:40

Настройка цветов ScrollPane
 
Кто подскажет, как в 2004 MX (или любом другом) настроить цветовую схему этого компонента(цвета появляющегося скролинга). Т.е. где либо список всех свойств есть (во встроенном хелпе точно нету, либо он там куда-то очень сильно спрятан - за прошедшие пару лет руки у Макромедии прямее не стали :killanasshole: )?

paravozzz 29.10.2003 10:20

выбрат на сцене правая кнопка Эдит и хот формы меняй и код переписвыай

dee2 29.10.2003 12:05

globalStyleFormat.arrow = 0x800080;
...
globalStyleFormat.textColor = 0xffffff;
globalStyleFormat.applyChanges();

________________
FStyleFormat.arrow
The color of the arrow used in scroll bars and drop-down lists.

FStyleFormat.background
The color of the background portion of a component.

FStyleFormat.backgroundDisabled
The color of the background portion of a disabled component.

FStyleFormat.check
The color of the check mark in a selected check box.

FStyleFormat.darkshadow
The color of the inner border or darker shadow portion of a component.

FStyleFormat.face
The main color of the component.

FStyleFormat.foregroundDisabled
The foreground color of a disabled component.

FStyleFormat.highlight
The color for the inner border or darker shadow portion of a component when it is selected.

FStyleFormat.highlight3D
The color for the outer border or light shadow portion of a component when it is selected.

FStyleFormat.radioDot
The color of the dot in a selected radio button.

FStyleFormat.scrollTrack
The color of the track in a scroll bar.

FStyleFormat.selection
The color of the selection bar highlighting a list item in a component.

FStyleFormat.selectionDisabled
The color of the selection bar that highlights a list item in a disabled component.

FStyleFormat.selectionUnfocused
The color of the selection bar when the component does not have key board focus.

FStyleFormat.shadow
The color of the outer border or light shadow portion of a component.

FStyleFormat.textAlign
The alignment (left, right, or center) for text displayed in or on a component.

FStyleFormat.textBold
Specifies whether text is bold (true) or not (false).

FStyleFormat.textColor
The default text color in all components assigned to the style format.

FStyleFormat.textDisabled
The color of the text in a disabled component.

FStyleFormat.textFont
The name of the font to display text.

FStyleFormat.textIndent
The indentation of the text from the left margin to the first text character, in pixels.

FStyleFormat.textItalic
Specifies whether text is italic (true) or not (false).

FStyleFormat.textLeftMargin
The left paragraph margin for text, in pixels.

FStyleFormat.textRightMargin
The right paragraph margin for text, in pixels.

FStyleFormat.textSelected
The color of a selected list item in a component.

FStyleFormat.textSize
The size of the text, in points.

FStyleFormat.textUnderline
Specifies whether text is underlined (true) or not (false).

(с) MX HELP

uzzer 29.10.2003 12:53

скажите ... а вообще большая польза та от этих компонентов?...

по-мойму соотношение вес/функции не соблюдены ...

dee2 29.10.2003 13:14

соблюдены соотношение функции/усилия

paravozzz 29.10.2003 13:23

функция / усииля да а вес просто жопа. Я сам такие штуки пшу так на много меньше

Руиз Ав 29.10.2003 14:15

Цитата:

Оригинал написал(а) paravozzz
выбрат на сцене правая кнопка Эдит и хот формы меняй и код переписвыай
У компонента на сцене EDIT отсутствует. Как и в баблиотеке тоже :mad:

dee2 29.10.2003 14:16

и штук таких наверное значительно меньше выходит :)

Руиз Ав 29.10.2003 15:01

Вложений: 1
Чтобы не быть голословным - вот файл со скроллпейном (переименуйте в .rar и распакуйте). Как сменить в нем цвет подсветки кнопок при скролинге на, допустим, красный. Только не надо слов - просто пример.

P.S. потому что все вышеописанное работает с компонентой из MX, но не работает с компонентой из 2004 MX.

llllllllll 29.10.2003 15:04

mScrollPane.setStyle("backgroundColor",0xFF0000); :)

llllllllll 29.10.2003 15:25

Да, не посмотрел, что ты хотел ...

Вот тебе подсветка кнопок ...
[это тот, что _global.style - если для всех, ну или экземпляр компонента] style.setStyle("themeColor", 0xFF0000);

Руиз Ав 29.10.2003 15:55

Цитата:

Оригинал написал(а) llllllllll
Да, не посмотрел, что ты хотел ...

Вот тебе подсветка кнопок ...
[это тот, что _global.style - если для всех, ну или экземпляр компонента] style.setStyle("themeColor", 0xFF0000);

Оно, сенкс.


Часовой пояс GMT +4, время: 03:25.

Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.