|
|
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
В datawindow painter для выбора цвета текста или цвета фона используется выпадающий список в виде названия цвета и маленького прямоугольника залитого этим цветом. Хочется такой же контрол. Может кто-нибудь встречал? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.02.2006, 13:15 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
Извиняйте за картинку огромных размеров, это я предпосмотреть забыл., а кнопочки "редактировать сообщение" нету... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.02.2006, 13:25 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
Можно самому сделать, точно такой, используя DropDownPictureListBox. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.02.2006, 15:49 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
Можно и проще, используя dddw из двух видимых полей... в одном поле - название, в другом пустое поле с Background Color = числовому значению цвета. Наверняка, кто-то же делал такое... зачем же самому писать велосипед :-) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.02.2006, 16:50 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
ChooseColor PowerScript function ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.02.2006, 18:35 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
ФилиппChooseColor PowerScript function Да, есть такая функция. Но в открывающемся диалоговом окне нет таких предопределенных значений как transparent, window background, window text, и т.п. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.02.2006, 13:35 |
|
||
|
Выбрать цвет из выпадающего списка
|
|||
|---|---|---|---|
|
#18+
Hi, guys! As you know PB colors are specified with a LONG value which is 4 bytes long. But what does it mean? For RGB values it's enough to have 3 bytes (one for Red, one for Green and one for Blue part). The truth is that PB uses the fourth (high-order) byte to define colors which are mapped to the current Windows color scheme, such as "Button Face", "Active Title Bar", "Button Text" etc. Note that every single bit of this byte has some special meaning and it's not allowed to have more than one bit switched on in this byte! After some small experiments I've made the following description for the highest byte: Value 01 (hex) means Custom color (one defined by you from "Design->Custom colors"). In this case lower bytes represent the RGB value of this custom color Examples: CUSTOM RGB(255, 255, 216): 30998527 = 1D8FFFF Value 02 means "Window Text" color. The lower bytes are unused, but represent your current Windows color setting. Examples: 33554432 = 02 000000 Value 04 means "Button Face" color. The lower bytes are unused, but represent your current Windows color setting. Examples: 79741120 = 04 C0C0C0 Value 08 means other standard Windows color. In this case lower bytes are especially used to determine the exact windows component part as follows: Scrollbar Background: 134217728 = 08 000000 Desktop Background: 134217729 = 08 000001 Active Title Bar: 134217730 = 08 000002 Inactive Title Bar: 134217731 = 08 000003 Menu Bar: 134217732 = 08 000004 Window Frame: 134217734 = 08 000006 Menu Text: 134217735 = 08 000007 Active Title Bar Text: 134217737 = 08 000009 Active Border: 134217738 = 08 00000A Inactive Border: 134217739 = 08 00000B Highlight: 134217741 = 08 00000D Highlight Text: 134217742 = 08 00000E Button Shadow: 134217744 = 08 000010 Disabled Text: 134217745 = 08 000011 Button Text: 134217746 = 08 000012 Inactive Title Bar Text: 134217747 = 08 000013 Button Highlight: 134217748 = 08 000014 Button Dark Shadow: 134217749 = 08 000015 Button Light Shadow: 134217750 = 08 000016 Tooltip Text: 134217751 = 08 000017 Tooltip: 134217752 = 08 000018 Link: 134217856 = 08 000080 Link Hover: 134217857 = 08 000081 Link Inactive: 134217858 = 08 000082 Link Visited: 134217859 = 08 000083 Value 10 means "Application Workspace" color. The lower bytes are unused, but represent your current Windows color setting. Examples: 276856960 = 10 808080 Value 20 means "Transparent" color. The lower bytes are unused. Examples: 536870912 = 20 000000 553648127 = 20 FFFFFF Value 40 means "Window Background" color. The lower bytes are unused, but represent your current Windows color setting. Examples: 1088479456 = 40 E0E0E0 1090519039 = 40 FFFFFF Value 80 is unused (LONG is signed and it's dangerous to use the highest bit) One important note: Maybe in addition to the Background.Color property you also have to modify Background.Mode property of the control as follows: "0" means one of the special Windows colors or a property expression is used "1" means transparent color "2" means standard color (like red, magenta etc.) I hope this helps! Cheers and have a nice work! Mr. Ivaylo Ivanov Senior Software Developer BULGARIA ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 10.03.2006, 13:50 |
|
||
|
|

start [/forum/topic.php?fid=15&fpage=74&tid=1337872]: |
0ms |
get settings: |
8ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
38ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
54ms |
get tp. blocked users: |
2ms |
| others: | 231ms |
| total: | 374ms |

| 0 / 0 |
