Type | Description | |||
newVal as Variant |
A Variant expression that could be one of the following:
As string, the AddObjectRB method can add multiple values at the same time, if passing a string, with values as explained above, separated by comma character. For instance: AddObjectRB( "Command1,Command2," + CStr(Grid1.hWnd) )
A safe array of a VARIANT type, with any value explained above. For instance, AddObjectRB( Array("Command1", Command2, Grid1.hWnd ) ), VB/NET |
By default, if a control/component/object is contained in
In
you need to use the AddObjectLT and AddObjectRB methods as in the following samples.
C++ Builder :
SplitBar1->AddObjectLT(TVariant(Button1->Handle)); SplitBar1->AddObjectRB(TVariant(Button2->Handle)); SplitBar1->AddObjectRB(TVariant(SplitBar2->DefaultInterface)); SplitBar1->AddObjectRB(TVariant(Button3->Handle));
C# for /COM on /NET Framework :
axSplitBar1.AddObjectLT(button1); axSplitBar1.AddObjectRB(button2); axSplitBar1.AddObjectRB(axSplitBar2); axSplitBar1.AddObjectRB(button3);
Delphi :
with SplitBar1 do begin AddObjectLT(Button1.Handle); AddObjectRB(Button2.Handle); AddObjectRB(SplitBar2.DefaultInterface); AddObjectRB(Button3.Handle); end
Visual Basic for /COM on /NET Framework:
With AxSplitBar1 .AddObjectLT(Button1) .AddObjectRB(Button2) .AddObjectRB(AxSplitBar2) .AddObjectRB(Button3) End With
Visual C++:
EXSPLITBARLib::ISplitBarPtr spSplitBar1 = GetDlgItem(IDC_SPLITBAR1)->GetControlUnknown(); spSplitBar1->AddObjectLT( (long)::GetDlgItem( m_hWnd, IDC_BUTTON1 ) ); spSplitBar1->AddObjectRB( (long)::GetDlgItem( m_hWnd, IDC_BUTTON2 ) ); spSplitBar1->AddObjectRB( GetDlgItem(IDC_SPLITBAR2)->GetControlUnknown() ); spSplitBar1->AddObjectRB( (long)::GetDlgItem( m_hWnd, IDC_BUTTON3 ) );