http://www.planet-source-code.com
=============================================================
Ariel Browse Folder Control
=============================================================
Purpose
A use control that resembles a combobox. When the dropdown button is clicked,
browse through a folder treeview to select a directory. 

Method
Uses the SHBrowseForFolder function, amongst other APIs. A call back
procedure is implemented showing the currently selected folder in 
the browse for folder dialog. User has the choice to select any
system folder (Desktop, My Computer etc) as the root, or a custom
folder. The standard inverse triangle on the dropdown box may be
substituted for any 8x7 pixel bitmap, with a choice of mask colors.
Full set of events, click() upon dialog close, Change() and 
DropDown() prior to opening of the dialog.
Source also implements BitBlt() API function to copy transparent
images.

APIs used
'GRAPHICS
'MoveToEx Lib "gdi32" 
'LineTo Lib "gdi32" 
'DrawEdge Lib "user32" 
'PtInRect Lib "user32"
'GetClientRect Lib "user32"

'FOLDERS
'SHBrowseForFolder Lib "shell32" 
'SHGetPathFromIDList Lib "shell32" 
'SHGetFolderLocation Lib "shell32" 
'SHGetSpecialFolderLocation Lib "shell32" 
'SHSimpleIDListFromPath Lib "shell32" 

'BITMAPS
'BitBlt Lib "gdi32" 
'SetBkColor Lib "gdi32" 
'CreateCompatibleDC Lib "gdi32" 
'DeleteDC Lib "gdi32" 
'CreateBitmap Lib "gdi32" 
'CreateCompatibleBitmap Lib "gdi32" 
'SelectObject Lib "gdi32" 
'DeleteObject Lib "gdi32" 
'GetObject Lib "gdi32" 


Distribution
Zip file contains full control source, images, screenshots and a testprogram

Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. You can use the example in any form, 
but please mention the author


Author
Tom de Lange
e-mail: tomdl@attglobal.net

Credits
Per Andersson, FireStorm@GoToMy.com, www.FireStormEntertainment.cjb.net
Roman Blachman, romaz@inter.net.il
Stephen Fonnesbeck, steev@xmission.com, http://www.xmission.com/~steev
Max Raskin, www.planet-source-code.com
