CHOOSEFILE Flags (OpenInsight Specific)
At 31 JAN 2000 02:39:03PM Mark Petereit wrote:
The documentation for the CHOOSEFILE utility command says "For more information about Flags, refer to the Microsoft Windows SDK." I consulted the SDK, but it just raised more questions.
I'd like to use CHOOSEFILE to allow the user to select multiple files. The SDK says to pass the OFN_ALLOWMULTISELECT bit flag.
How do I pass this flag? Do I just use:
CFOpt=OFN_ALLOWMULTISELECT"
Files=Utility("CHOOSEFILE", @window, CFOpt)
Or do I need to know the actual decimal value of OFN_ALLOWMULTISELECT? If so, how do I find that value?
How would I pass multiple flags, such as OFN_ALLOWMULTISELECT and OFN_EXPLORER?
At 31 JAN 2000 02:48PM Matt Sorrell wrote:
Mark,
I believe you are going to have to know the value of the flag. There should be a file on your system entitle WIN32API.TXT.
As far as passing multiple values flags, you add the values of the flags together, and the dll then "decodes" the composite value into the atomic values.
Matt Sorrell
At 01 FEB 2000 06:26AM Oystein Reigem wrote:
Mark,
The Delphi file Commdlg.pas says:
OFN_ALLOWMULTISELECT=$00000200;
So try with IConv("200","MX"), or 512.
(This is from a 32-bit Delphi, but I think the value is all right.)
- Oystein -