Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

HOWTO: Open files/browse folders with a single click.

 
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: Tue Jul 14, 2009 11:21 am    Post subject: HOWTO: Open files/browse folders with a single click.

By default, FileView browses folders or opens files when they are double-clicked. To do this with a single-click, set the HotTracking property to True and call the CListItem.Open method in the OnItemClick event as follows:
[C++]
Code:
void CFilViewVCDlg::OnOnItemClickFileviewctrl1(LPDISPATCH Item, long x, long y)
{
   CListItem item;
   item.AttachDispatch(Item,FALSE);
   item.Open();
}

[VB6]
Code:
Private Sub fileVw_OnItemClick(ByVal Item As FileViewControl.IListItem, ByVal X As Long, ByVal Y As Long)

  Item.Open

End Sub
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