` Printed Icetips Article

Icetips Article



Par2: Getting a File Directory lookup using the DOSFileLookup control template
2001-11-06 -- Craig Ransom
 
The DOSFileLookup control works well, but is missing a checkbox 
for handling Directory lookup (FILE:Directory option).

While investigating this I found a quick work-around that does 
not involve changing the template. 

Populate your DOSFIleLookup control(s) and then in the embed 
tree find ThisWindow.Init. In the list of embed points you will 
see new embed points for "Set Up DOS File Lookup" but without 
the number. Open the Embeditor at that point and you will see 
lines like:

FileLookup3.Init
FileLookup3.Flags = BOR(FileLookup3.Flags,FILE:)
FileLookupe.WindowTitle = 'Select Directory'
etc.

Using the WindowTitle assignment, find your Directory lookup, 
and copy the Flags line and insert it as a Source embed after 
the other lines for that control, and change the parameter, 
viz.:

FileLookup3.Flags = BOR(FileLookup3.Flags,FILE:Directory)

And now you have a directory lookup.

(It took me a LOT longer to explain than it does to do!)



Printed May 5, 2024, 2:09 pm
This article has been viewed/printed 35112 times.