Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sun Jul 31, 2005 6:55 am Post subject: HOWTO : Use the ShComboBox ActiveX Controls with the FileView and FolderView ActiveX Controls. |
|
|
Linking the three controls involves only two simple lines of code :
Consider a form or a dialog box where you have a ShComboBox Control named shCmbBox, FolderViewControl named fldrVw and a FileView Control named fileVw.
Visual Basic
shCmbBox.FolderView = fldrvVw
fldrVw.FileView = fileVw
Visual C++
shCmbBox.SetFolderView((IDispatch*)fldrVw.GetControlUnknown()); fldrVw.SetFileView((IDispatch*)fileVw.GetControlUnknown());
Borland Delphi
shCmbBox.FolderView:=fldrvw.ControlInterface ;
fldrvw.FileView:=filevw.ControlInterface;
Borland C++ Builder
shCmbBox->FolderView = fldrVw->ControlInterface;
fldrVw->FileView = fileVw->ControlInterface;
Microsoft Access
shCmbBox.FolderView = fldrVw.Object
fldrVw.FileView = fileVw.Object
Using ShComboBox with FileView only
Using ShComboBox with FileView requires just one line of code on your part. The code required is given below.
Consider a form or a dialog box where you have a ShComboBox Control named shCmbBox and a FileView Control named fileVw.
Visual Basic
shCmbBox.FileView = fileVw
Visual C++
shCmbBox.SetFileView((IDispatch*)fileVw.GetControlUnknown());
Borland Delphi
shCmbBox.FileView:=filevw.ControlInterface ;
Borland C++ Builder
shCmbBox->FileView = fileVw->ControlInterface;
Microsoft Access
shCmbBox.FileView = fileVw.Object
Using ShComboBox with FolderView only
Using ShComboBox with FolderView requires just one line of code on your part. The code required is given below.
Consider a form or a dialog box where you have a ShComboBox Control named shCmbBox and FolderView Control named fldrVw.
Visual Basic
shCmbBox.FolderView = fldrVw
Visual C++
shCmbBox.SetFolderView((IDispatch*)fldrVw.GetControlUnknown());
Borland Delphi
shCmbBox.FolderView:=fldrVw.ControlInterface ;
Borland C++ Builder
shCmbBox->FolderView= fldrVw->ControlInterface;
Microsoft Access
shCmbBox.FolderView = fldrVw.Object |
|