/AutoCompleteFileOrURL

Auto Complete Drop List for File, Path or URL using SHAutoComplete()

Primary LanguageClarionMIT LicenseMIT

AutoCompleteFileOrURL

Add an Auto Complete drop list for File, Path or URL with one Windows Shell API call to SHAutoComplete(). There is an example of calling the SPI directly and also a Class to make it easy to add to a Form ENTRY, COMBO or TEXT,SINGLE.

The example lets you try out all the flags. The below screen capture shows the drop list limited to only Paths.

Path Drop

The above Path and below File list only required one code statement:

  SHAutoComplete(?PathName{PROP:Handle}, SHACF_FILESYS_DIRS)  ! EQUATE(00000020h) Dirs only
  SHAutoComplete(?FileName{PROP:Handle}, SHACF_FILESYS_ONLY)  ! EQUATE(00000010h) Dirs and Files

File Drop

Shown during the ClarionLive Open Webinar March 24, 2021 at time 1:43:30