22
|
How can I play animated GIF using the control

NETHost1->Create(L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll",L"System.Windows.Forms.Label");
NETHost1->Host->Template = L"Image = LoadPicture(`C:\\Program Files (x86)\\Exontrol\\ExNETHost\\Sample\\wait.gif`)";
|
21
|
How can I use the Template property
NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TreeView";
NETHost1->Host->Template = L"Nodes { Add(`Root 1`).Nodes { Add(`Child 1`); Add(`Child 2`) } }";
|
20
|
How can I use the TemplateResult property (method 2)
NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TreeView";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"Nodes.Add(`Root 1`){ BackColor = RGB(255,0,0);ForeColor = RGB(255,255,255) }";
var_NETHostObject->TemplateResult->Template = L"Nodes{ Add(`Child 1`); Add(`Child 2`) }; Expand() }";
|
19
|
How can I use the TemplateResult property (method 1)
NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TreeView";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"Nodes.Add(`Root 1`)";
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->TemplateResult;
var_NETHostObject1->Template = L"Nodes.Add(`Child 1`)";
var_NETHostObject1->Template = L"Nodes.Add(`Child 2`)";
var_NETHostObject1->Template = L"Expand()";
|
18
|
How can I find the information about the hosting control, like name, version, ...
NETHost1->AssemblyQualifiedName = L"System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
OutputDebugString( PChar(var_NETHostObject->get_Item(L"ProductName")->get_Value()) );
OutputDebugString( PChar(var_NETHostObject->get_Item(L"ProductVersion")->get_Value()) );
OutputDebugString( PChar(var_NETHostObject->get_Item(L"CompanyName")->get_Value()) );
|
17
|
How do I get the hwnd/handle of the hosting control
NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
OutputDebugString( PChar(NETHost1->Host->get_Item(L"Handle")->AsInt) );
|
16
|
How do I get the number of arguments that an event has
// HostEvent event - The hosting control fires an event.
void __fastcall TForm1::NETHost1HostEvent(TObject *Sender,Exontrol_nethost_tlb::INETHostEvent *Ev)
{
OutputDebugString( L"Ev.Arguments.Item(\"GetType().GetProperties().Length\").AsString" );
OutputDebugString( L"Ev" );
}
NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
|
15
|
How can I change the control's background color, as BackgroundColor seems to have no effect

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TreeView";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"BackColor = RGB(240,240,240)";
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->get_Item(L"Nodes.Add(`Root`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject = var_NETHostObject1->get_Item(L"Nodes.Add(`Child 1`)");
var_NETHostObject1 = var_NETHostObject1->get_Item(L"Nodes.Add(`Child 2`)");
_tlb::ObjectPtr var_Object = var_NETHostObject1->get_Item(L"Expand()");
|
14
|
How can I add a TreeView

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TreeView";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->get_Item(L"Nodes.Add(`Root 1`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject = var_NETHostObject1->get_Item(L"Nodes.Add(`Child 1`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject2 = var_NETHostObject1->get_Item(L"Nodes.Add(`Child 2`)");
var_NETHostObject1 = var_NETHostObject2->get_Item(L"Nodes.Add(`Sub-Child 2.1`)");
var_NETHostObject2 = var_NETHostObject2->get_Item(L"Nodes.Add(`Sub-Child 2.2`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject3 = var_NETHostObject2->get_Item(L"Nodes.Add(`Sub-Child 2.3`)");
_tlb::ObjectPtr var_Object = var_NETHostObject2->get_Item(L"Expand()");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject4 = var_NETHostObject1->get_Item(L"Nodes.Add(`Child 3`)");
_tlb::ObjectPtr var_Object1 = var_NETHostObject1->get_Item(L"Expand()");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject5 = var_NETHostObject->get_Item(L"Nodes.Add(`Root 2`)");
var_NETHostObject5 = var_NETHostObject5->get_Item(L"Nodes.Add(`Child 1`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject6 = var_NETHostObject5->get_Item(L"Nodes.Add(`Child 2`)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject7 = var_NETHostObject5->get_Item(L"Nodes.Add(`Child 3`)");
|
13
|
How can I add a ProgressBar

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.ProgressBar";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->SetTemplateDef(TVariant("Dim percent"));
var_NETHostObject->SetTemplateDef(TVariant(50));
var_NETHostObject->Template = L"Value = percent";
|
12
|
How can I add a DateTimePicker

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.DateTimePicker";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->SetTemplateDef(TVariant("Dim date"));
var_NETHostObject->SetTemplateDef(TVariant(TDateTime(2001,1,1).operator double()));
var_NETHostObject->Template = L"Value = date";
|
11
|
How can I add CheckedListBox

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.CheckedListBox";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"FormattingEnabled = True";
var_NETHostObject->Template = L"Items.Add(`Check 1`)";
var_NETHostObject->Template = L"Items.Add(`Check 2`,True)";
|
10
|
How can I specify the list of events to be handled
// HostEvent event - The hosting control fires an event.
void __fastcall TForm1::NETHost1HostEvent(TObject *Sender,Exontrol_nethost_tlb::INETHostEvent *Ev)
{
OutputDebugString( L"Ev" );
OutputDebugString( L"Button " );
OutputDebugString( L"Ev" );
}
NETHost1->BackgroundColor = 16777215;
NETHost1->HostEvents = L"MouseUp MouseDown";
NETHost1->Create(L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll",L"System.Windows.Forms.MonthCalendar");
NETHost1->Host->Template = L"MaxSelectionCount = 1";
|
9
|
Is it possible to handle only a specific event
// HostEvent event - The hosting control fires an event.
void __fastcall TForm1::NETHost1HostEvent(TObject *Sender,Exontrol_nethost_tlb::INETHostEvent *Ev)
{
OutputDebugString( L"Ev" );
}
NETHost1->BackgroundColor = 16777215;
NETHost1->Create(L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll",L"System.Windows.Forms.MonthCalendar");
NETHost1->HostEvents = L"DateSelected";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"MaxSelectionCount = 1";
|
8
|
How can I handle events withing the control
// HostEvent event - The hosting control fires an event.
void __fastcall TForm1::NETHost1HostEvent(TObject *Sender,Exontrol_nethost_tlb::INETHostEvent *Ev)
{
OutputDebugString( L"Ev" );
}
NETHost1->BackgroundColor = 16777215;
NETHost1->Create(L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll",L"System.Windows.Forms.MonthCalendar");
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"MaxSelectionCount = 1";
|
7
|
How can I add the Tab page, and pages inside (method 2)

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TabControl";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->get_Item(TVariant(String("Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyT") +
"oken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page"));
var_NETHostObject1->Template = L"Text = `Page 1`;UseVisualStyleBackColor = True";
var_NETHostObject1->Template = TVariant(String("Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7") +
"7a5c561934e089`){Text=`Button 2`;Dock=1}; Controls.Add(c)");
var_NETHostObject1->Template = TVariant(String("Dim c; c = CreateObject(`System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b7") +
"7a5c561934e089`){Text=`Button 1`;Dock=1}; Controls.Add(c)");
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject2 = var_NETHostObject->get_Item(TVariant(String("Dim page; page = CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyT") +
"oken=b77a5c561934e089`){Text = `new`};Controls.Add(page);page"));
var_NETHostObject2->Template = L"Text = `Page 1`;UseVisualStyleBackColor = True";
var_NETHostObject2->Template = TVariant(String("Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b") +
"77a5c561934e089`){Text=`Edit 2`;Dock=1}; Controls.Add(c)");
var_NETHostObject2->Template = TVariant(String("Dim c; c = CreateObject(`System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b") +
"77a5c561934e089`){Text=`Edit 1`;Dock=1}; Controls.Add(c)");
|
6
|
How can I add the Tab page, and pages inside (method 1)

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.TabControl";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->get_Item(TVariant(String("CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934") +
"e089`)"));
var_NETHostObject1->Template = L"Text = `Page 1`;UseVisualStyleBackColor = True";
var_NETHostObject->SetTemplateDef(TVariant("Dim page"));
var_NETHostObject->SetTemplateDef(var_NETHostObject->TemplateResult->get_Value());
var_NETHostObject->Template = L"Controls.Add(page)";
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject2 = var_NETHostObject->get_Item(TVariant(String("CreateObject(`System.Windows.Forms.TabPage, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934") +
"e089`)"));
var_NETHostObject2->Template = L"Text = `Page 2`;UseVisualStyleBackColor = True";
var_NETHostObject->SetTemplateDef(TVariant("Dim page"));
var_NETHostObject->SetTemplateDef(var_NETHostObject->TemplateResult->get_Value());
var_NETHostObject->Template = L"Controls.Add(page)";
|
5
|
Just wondering if I can host your /NET control

NETHost1->AssemblyLocation = L"C:\\Program Files\\Exontrol\\ExG2antt.NET\\Sample\\exontrol.exg2antt.dll";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"LoadXML(`http://www.exontrol.net/testing.xml`)";
|
4
|
How can I insert the MonthCalendar of /NET framework

NETHost1->BackgroundColor = 16777215;
NETHost1->Create(L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll",L"System.Windows.Forms.MonthCalendar");
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->SetTemplateDef(TVariant("Dim x"));
var_NETHostObject->SetTemplateDef(TVariant(TDateTime(2001,1,1).operator double()));
var_NETHostObject->Template = L"MaxSelectionCount = 1;SelectionStart = x";
|
3
|
How can I use the AssemblyQualifiedName property

NETHost1->AssemblyQualifiedName = L"System.Windows.Forms.ListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject = NETHost1->Host->get_Item(L"Items");
var_NETHostObject->Template = L"Add(2001)";
var_NETHostObject->Template = L"Add(4.1234)";
var_NETHostObject->Template = L"Add(#1/1/2001#)";
var_NETHostObject->Template = L"Add(RGB(255,0,0))";
var_NETHostObject->Template = L"Add(1);Add(2);Add(3)";
|
2
|
How can I use the AssemblyLocation property

NETHost1->AssemblyLocation = L"C:\\Windows\\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0__b77a5c561934e089\\System.Windows.Forms.dll";
NETHost1->AssemblyName = L"System.Windows.Forms.ListView";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"Items.Add(`first`)";
Exontrol_nethost_tlb::INETObjectTemplatePtr var_NETHostObject1 = var_NETHostObject->get_Item(TVariant(String("CreateObject(`System.Windows.Forms.ListViewItem, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5") +
"61934e089`)"));
var_NETHostObject1->Template = L"Text = `second`;ForeColor = RGB(255,0,0)";
var_NETHostObject->SetTemplateDef(TVariant("Dim n"));
var_NETHostObject->SetTemplateDef(var_NETHostObject->TemplateResult->get_Value());
var_NETHostObject->Template = L"Items.Add(n)";
var_NETHostObject->Template = L"Items.Add(`third`)";
|
1
|
How can I insert the PropertyGrid of /NET framework

NETHost1->AssemblyQualifiedName = L"System.Windows.Forms.PropertyGrid, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
Exontrol_nethost_tlb::INETHostObjectPtr var_NETHostObject = NETHost1->Host;
var_NETHostObject->Template = L"BackColor = RGB(255,255,255);ViewBackColor = RGB(255,255,255);LineColor = ViewBackColor";
var_NETHostObject->SetTemplateDef(TVariant("dim object"));
var_NETHostObject->SetTemplateDef(TVariant(NETHost1));
var_NETHostObject->Template = L"SelectedObject = object";
|