I think I got it. I looked at CFOAPI.txt that Shawn provided, and piecing
things together, have found that
- the custom dialog is not resizeable - when CFO.SetFlags(#H80000) is used,
it automatically switches to tne new dialog, and you apparently can't
specify view and sort parameters
- doing a CFO.InitMembers() clears the variables, and they can then be
reset. Don't know if that's the way it is in C, but it works for me. Now
I can set a new start directory for a subsequent call
With this, it looks like I now have everything working just the way I need
it. The dialog box is a little small, but at least, it works! Thank you
very, very much, Shawn!
--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================
Richard
Kleinhenz/Fishkill To: shawn@oswegosw.com
/IBM@IBMUS cc: vrf@lvld.agilent.com
Sent by: Subject: vrf customFileOpen - nearly there!
owner-vrf@lvld.agi
lent.com
11/15/2001 09:29
AM
Hi Shawn,
I think I'm nearly there. I really appreciate you putting this together,
and it will fill my needs exactly once I get it to work perfectly.
Unfortunately, some things are not behaving the way I expected them to.
Here's what I did to your example to get it to work in my Vee 6.01 under
win2k:
specify c: empcfo.dll and c: empcfo.h explicitly on write and import
don't delete cfo.dll - it's blocked in win2k at least while the dll is
loaded
check 'clear file on prerun and open" for .dll and .h write
trap error 702 at .dll write (in case program aborted and the .dll was not
unloaded, file is locked and can't be written to - but it's loaded, so we
can continue)
add write "long __stdcall CFO(long x)" as first statement in .h - no idea
whether this does something or not, can you tell me whether this is what
you meant?
So far, so good. NO MORE HANGS!!! (thanks,Gary!)
But, I can only specify a directory once via CFO.SetInitDir("d:\test");.
I can not select a different start directory before the next call, the
dialog starts in the last directory I selected from (not the last one that
was set, if I navigated to a different directory from there, that's the one
I start out with)
And, if I add CFO.SetFlags(#H800000); to the formula box, I get the old
default Vee dialog instead of the custom dialog I thought this would
simply add the sizing controls to the dialog
--
Regards,
Rich
===========================
Richard Kleinhenz
mailto:scubaman@us.ibm.com
845-892-2617
===========================
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo. To send messages to
this maillist, just email to "vrf@lvld.agilent.com". Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------