Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

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

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



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Jul 30, 2005 12:16 pm    Post subject: HOWTO : Use the FolderView ActiveX Controls with the FileView and ShComboBox ActiveX Controls.

All you need to do is write two simple lines of code!!

Sample applications demonstrating the use of the three controls together are included in this distribution package.

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

FolderView can be used with ShComboBox and FileView 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 FolderView with FileView only

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

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

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group