ФормыДляОдноСкрипта.Значок (OneScriptForms.Icon) Метод

Синтаксис

Значок(<ИмяФайла>)

Значок(<ИмяФайла>, <НомерЗначка>)

Значок(<ЗакодированнаяСтрока>)

Значок(<ТочечныйРисунок>)

Параметры

ИмяФайла
Тип: Строка.
Полное имя файла из которого будет создан значок.
ЗакодированнаяСтрока
Тип: Строка.
Строка, состоящая из символов в кодировке Base64.
ТочечныйРисунок
Тип: Картинка (Bitmap).
Растровый рисунок, который будет преобразован в эквивалентный значок.
НомерЗначка
Тип: Число.
Номер значка в файле или библиотеке.

Возвращаемое значение

Тип: Значок (Icon).

Описание

Создаёт новый экземпляр класса Значок (Icon).

Примечание

Пример

Значок1 = Ф.Значок(ИмяВременногоФайла2);
Значок2 = Ф.Значок(СтрЗначок);
Значок3 = Ф.Значок(Рисунок1);
Значок4 = Ф.Значок("C:\Windows\System32\imageres.dll", 3);
Полный пример кода

Копировать     Выделить всё

ПодключитьВнешнююКомпоненту("C:\444\111\OneScriptForms\OneScriptForms\bin\Debug\OneScriptForms.dll"); Ф = Новый ФормыДляОдноСкрипта(); Форма1 = Ф.Форма(); Форма1.Текст = "Форма1"; Форма1.Отображать = Истина; Форма1.Показать(); Форма1.Активизировать(); Форма2 = Ф.Форма(); Форма2.Владелец = Форма1; Форма2.Текст = "Форма2"; Форма2.Отображать = Истина; Форма2.Показать(); Форма2.Активизировать(); Форма3 = Ф.Форма(); Форма3.Владелец = Форма1; Форма3.Текст = "Форма3"; Форма3.Отображать = Истина; Форма3.Показать(); Форма3.Активизировать(); Форма4 = Ф.Форма(); Форма4.Текст = "Форма4"; Форма4.Владелец = Форма1; Форма4.Отображать = Истина; Форма4.Показать(); Форма4.Активизировать(); СтрРис = "/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwh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kktNJKwHv8jHH0wP0or0cux31qi6jVtWvketXoezla557q3jk |Jq95e7Gnnmf8AdoGwEiH3AT6Y5wO5J71J4e1fxT4s1aO2txbwhWWUSKh/0cA/6wknOeoA/izg8ZrlNT0efTTc/aFYvbymJ8jowOP8D9CK6261WLwr4a0uxsw01tqdqLu7ubc4N1IeDFuz8qoMZHUgj/az0YGhWx |db2a0Ppc3q4TAYaLprmbW/RaHql1rFrqiXemaXfp9v2tsxuUNtPzBXxhiOh2k7SecVzOlFbuV4ipSaE7HiIwUxxjHseK4o+ObS5tIrd7e4tvJIMLRqB5JHClCv3SOnTpkHIJFWZPHGjTSfbtWF4mppGU87THVFv |BjAEin5kOMAlfwIwoHRm/DlXEQWj0PksJmNOLauek6IiXurvcRlTb2IMSEEHfM3DH6KAVz3LN6UVzXwa+1T6Hqt7dfenuwoxwAFjXgDoAAQABwABiiiGDjhF7CPQcqrqvnZ1mu+ENK18vJOjwzyLseWEjMi9gwI |Ib2JGR2IrlbX4Q2VvI0batNJZSH95AYQC2OhDZ+VgTwwGeo5BIJRVRVpcy0ZTrVPZuDd12MPUvhfqtjIxtFTUbXJ2ujLHKB/tKxC8eobn+6OlVbP4davfShFslhQHmaeRNq/grEk/h+Ioor1VnWLjTaun8jy3l1 |BzTtY9e0DRbbQNGt9OtsskQO5yMF2JyzH6n8ulFFFeXJuTcpas9GMUlZH/9k="; ИмяВременногоФайла1 = СтрЗаменить(ПолучитьИмяВременногоФайла(), ".", "") + ".jpg"; ДД = Base64Значение(СтрРис); ДД.Записать(ИмяВременногоФайла1); Рисунок1 = Ф.Картинка(ИмяВременногоФайла1); СтрЗначок = "AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAA47AAAOOwAAAAAAAAAAAAAjJswAHiLMAB0hzAElJ8wRKizNEyoszRMqL84TLSDKExd75RMA3/8TBND9EwPT/hMD0/4TA9P+EwPT/h |MC1v8TAtX/EwPT/hMD0/4TA9P+EwPT/h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AAAAAQAAAAkAAAAJAAAACIAAABCAAAARQAAAKoAAAJdAAAAu |kAAAlkAAACZAAAAmgAAAFoAAABaAAAAWgAAAFoAAABaAAAAWQAAAJkAAACYgAABHIAAATyAAAE+gAABfoAAAX5AAAJ+QAACf6AABH9QAAj/qAAS/7AAJf/IgQv/9EIv8="; ИмяВременногоФайла2 = СтрЗаменить(ПолучитьИмяВременногоФайла(), ".", "") + ".ico"; ДД = Base64Значение(СтрЗначок); ДД.Записать(ИмяВременногоФайла2); Значок1 = Ф.Значок(ИмяВременногоФайла2); Значок2 = Ф.Значок(СтрЗначок); Значок3 = Ф.Значок(Рисунок1); Значок4 = Ф.Значок("C:\Windows\System32\imageres.dll", 3); Форма1.Значок = Значок1; Форма2.Значок = Значок2; Форма3.Значок = Значок3; Форма4.Значок = Значок4; Ф.ЗапуститьОбработкуСобытий();

Тестовый код

Копировать     Выделить всё

ПодключитьВнешнююКомпоненту("C:\444\111\OneScriptForms\OneScriptForms\bin\Debug\OneScriptForms.dll"); Ф = Новый ФормыДляОдноСкрипта(); Форма1 = Ф.Форма(); Форма1.Текст = "Форма1"; Форма1.Отображать = Истина; Форма1.Показать(); Форма1.Активизировать(); Форма2 = Ф.Форма(); Форма2.Владелец = Форма1; Форма2.Текст = "Форма2"; Форма2.Отображать = Истина; Форма2.Показать(); Форма2.Активизировать(); Форма3 = Ф.Форма(); Форма3.Владелец = Форма1; Форма3.Текст = "Форма3"; Форма3.Отображать = Истина; Форма3.Показать(); Форма3.Активизировать(); Форма4 = Ф.Форма(); Форма4.Текст = "Форма4"; Форма4.Владелец = Форма1; Форма4.Отображать = Истина; Форма4.Показать(); Форма4.Активизировать(); СтрРис = "/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMj |IyMjIyMjIyMjI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or0cux31qi6jVtWvketXoezla557q3jk |Jq95e7Gnnmf8AdoGwEiH3AT6Y5wO5J71J4e1fxT4s1aO2txbwhWWUSKh/0cA/6wknOeoA/izg8ZrlNT0efTTc/aFYvbymJ8jowOP8D9CK6261WLwr4a0uxsw01tqdqLu7ubc4N1IeDFuz8qoMZHUgj/az0YGhWx |db2a0Ppc3q4TAYaLprmbW/RaHql1rFrqiXemaXfp9v2tsxuUNtPzBXxhiOh2k7SecVzOlFbuV4ipSaE7HiIwUxxjHseK4o+ObS5tIrd7e4tvJIMLRqB5JHClCv3SOnTpkHIJFWZPHGjTSfbtWF4mppGU87THVFv |BjAEin5kOMAlfwIwoHRm/DlXEQWj0PksJmNOLauek6IiXurvcRlTb2IMSEEHfM3DH6KAVz3LN6UVzXwa+1T6Hqt7dfenuwoxwAFjXgDoAAQABwABiiiGDjhF7CPQcqrqvnZ1mu+ENK18vJOjwzyLseWEjMi9gwI |Ib2JGR2IrlbX4Q2VvI0batNJZSH95AYQC2OhDZ+VgTwwGeo5BIJRVRVpcy0ZTrVPZuDd12MPUvhfqtjIxtFTUbXJ2ujLHKB/tKxC8eobn+6OlVbP4davfShFslhQHmaeRNq/grEk/h+Ioor1VnWLjTaun8jy3l1 |BzTtY9e0DRbbQNGt9OtsskQO5yMF2JyzH6n8ulFFFeXJuTcpas9GMUlZH/9k="; ИмяВременногоФайла1 = СтрЗаменить(ПолучитьИмяВременногоФайла(), ".", "") + ".jpg"; ДД = Base64Значение(СтрРис); ДД.Записать(ИмяВременногоФайла1); Рисунок1 = Ф.Картинка(ИмяВременногоФайла1); СтрЗначок = "AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAA47AAAOOwAAAAAAAAAAAAAjJswAHiLMAB0hzAElJ8wRKizNEyoszRMqL84TLSDKExd75RMA3/8TBND9EwPT/hMD0/4TA9P+EwPT/h |MC1v8TAtX/EwPT/hMD0/4TA9P+EwPT/hME0P0TAN//Exd75RMtI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AAAACIAAABCAAAARQAAAKoAAAJdAAAAu |kAAAlkAAACZAAAAmgAAAFoAAABaAAAAWgAAAFoAAABaAAAAWQAAAJkAAACYgAABHIAAATyAAAE+gAABfoAAAX5AAAJ+QAACf6AABH9QAAj/qAAS/7AAJf/IgQv/9EIv8="; ИмяВременногоФайла2 = СтрЗаменить(ПолучитьИмяВременногоФайла(), ".", "") + ".ico"; ДД = Base64Значение(СтрЗначок); ДД.Записать(ИмяВременногоФайла2); Значок1 = Ф.Значок(ИмяВременногоФайла2); Значок2 = Ф.Значок(СтрЗначок); Значок3 = Ф.Значок(Рисунок1); Если Ф.ПлатформаWin Тогда Значок4 = Ф.Значок("C:\Windows\System32\imageres.dll", 3); Форма4.Значок = Значок4; КонецЕсли; Форма1.Значок = Значок1; Форма2.Значок = Значок2; Форма3.Значок = Значок3; Если Ф.ПлатформаWin Тогда Сообщить(?( "" + Значок1 = "КлЗначок" и "" + Значок2 = "КлЗначок" и "" + Значок3 = "КлЗначок" и "" + Значок4 = "КлЗначок", "", "!!! ") + "ФормыДляОдноСкрипта.Значок (OneScriptForms.Icon) Метод" + " " + ТекущаяДата()); Иначе Сообщить(?( "" + Значок1 = "КлЗначок" и "" + Значок2 = "КлЗначок" и "" + Значок3 = "КлЗначок", "", "!!! ") + "ФормыДляОдноСкрипта.Значок (OneScriptForms.Icon) Метод" + " " + ТекущаяДата()); КонецЕсли;

Смотрите также

ФормыДляОдноСкрипта (OneScriptForms) Класс | Библиотека OneScriptForms