Графические контролы ДотНЕТ

Системная платформа - продукт для комплексной автоматизации процессов предприятия от Wonderware.

Графические контролы ДотНЕТ

Сообщение Little_Cat » Пн окт 19, 2009 8:55 am

Доброга дня. Собственно вопрос - как использовать в Архестра ИДЕ эти контролы. Если мне нужен Грид, например, в символе.
Спасибо.
Little_Cat
 
Сообщения: 78
Зарегистрирован: Пт апр 18, 2008 5:12 pm

Сообщение Little_Cat » Вт окт 20, 2009 6:00 am

Сам и отвечу для "потомков" :)
Из оф. форума цитата:
"
There is always the possibility to use a standard .NET DataGridView which can be embedded in an ArchestrA symbol for use in InTouch. The grid can be populated using standard .NET tools for Oracle, OleDb or Odbc in the symbol scripts.

See here for documentation on the DataGridView and examples of how to populate it.

To use .NET Forms controls in ArchestrA Symbols, you have to import %WinDir%\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll into the Galaxy as a client control import.
"
Little_Cat
 
Сообщения: 78
Зарегистрирован: Пт апр 18, 2008 5:12 pm

Сообщение pss » Чт окт 22, 2009 10:43 am

Не лучший вариант импортировать все контролы... лучше уж взять и написать потомка от нужного заодно дописав немного функционала :) например нужные вещи вывести в свойства ... события например данные не все возвращают нормально ...
опять же цитата с оф. форума
These impose a few limitations. The most obvious that come to mind are:

Scripting is not capable of catching exceptions. Catch exceptions internally and expose possible exception messages as a string property of the class.
Scripting does not fare well with some data relationships. For instance, it is not possible to do recusive script calls to traverse a hiearchical structure as the nodes collection of a TreeView. The parsing of such data has to be built into the control.
Scripting is, as far as I know, incapable of generics. This means that you have to use explicit datatypes as avoid properties of types like ObservableCollection<T> or List<T>.
As far as I know, only controls inheriting from System.Windows.Forms.Control namespace are valid. Using Windows Presentation Foundation (System.Windows.Controls namespace) is probably out of the picture.
pss
 
Сообщения: 1
Зарегистрирован: Чт окт 22, 2009 10:40 am


Вернуться в Wonderware System Platform

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 15