Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Use the FileView ActiveX Controls with the FolderView and ShComboBox ActiveX Controls.

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView ActiveX Control
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Jul 30, 2005 5:53 am    Post subject: HOWTO : Use the FileView ActiveX Controls with the FolderView and ShComboBox ActiveX Controls.

All you need to do is write two simple lines of code!!
Fore more information, see Shell MegaPack.
For the latest information, product updates and special offers, please visit our website www.ssware.com

Using the three controls together

FileView can be used with ShComboBox and FolderView to create an entire Windows Explorer with custom functionality in your own application. Shown below is a simple application which uses the three controls together to give Windows Explorer functionality

Linking the three controls involves only two simple lines of code :

Consider a form or a dialog box where you have a FileView Control named fileVw, FolderView Control named fldrVw and a ShComboBox Control named shCmbBox.

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 = fldrvVw.Object
fldrVw.FileView = fileVw.Object

Using FileView with FolderView only

Using FileView with FolderView requires just one line of code on your part. Just use the lower line of code shown above.

Using FileView with ShComboBox only

Using FileView with ShComboBox 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 FileView Control named fileVw and a ShComboBox Control named shCmbBox.

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.FolderView = fldrvVw.Object
Back to top
Display posts from previous:   
Forum Index -> FileView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group