OI_ComDlg and Utility_FileDlg (OpenInsight 16-Bit Specific)
At 09 JUL 2002 09:25:40PM Robert Lee wrote:
Ok, I'm foxed. I've done a search and it appears I am the only one in the world with this problem. I'm using 3.7.5.
For the first time, I am using Utility_FileDlg. When I go into EXAMPLES or SYSPROG, and run it, it works perfectly. I then copy the code and paste it into a DROPDOWN event in my app (changing only the Set Property destination) and I'll be darned if the OI_ComDlg screen doesn't jump all over my screen - as if in some way it was being helpful. Well it ain't! It's a nuisance!
Why? How do I get rid of it?
Heres the code. It should look familiar…
declare function Utility_FileDlg
* mtr
mode=0 ;* open
filter='
index=1
filename='
flags='
initialdir=C:\'
ans=Utility_FileDlg(mode, filter,index,filename,flags,Initialdir)
if len(ans) then
longname =ansshortname=ans.MERGE_FILENAME-]text=longname* .shortname-]text=shortname
end
RETURN 0
At 23 JUL 2002 05:29PM Robert Lee wrote:
Hi Mike
I take it from the *mtr in the code, this is your baby.
Once I click the Hide button on the OI_ComDlg screen, it stays hidden.
I'd appreciate any thoughts you have.
Robert Lee
At 24 JUL 2002 08:14AM Bob Carten, WinWin / RevTech wrote:
Actually, OI_COMDLG is my (rjc) screen.
It should open invisibly and stay invisible unless you set the visible property to 1.
From you Application, if you just exec OI_COMDLG does it show up?
If you open OI_COMDLG in the form designer is the visible property set? If so, clear it, compile the form, see if I stop stepping on your screen.
Bob
At 24 JUL 2002 10:14PM Robert Lee wrote:
Hi Bob
Thanks for your reply. I already checked that, but your post did get me thinking…
I tracked the problem to an over-enthusiastic promoted create event which makes the invisible visible. Seeing as I don't have any hidden forms in my app, it never showed up as a problem before.
Thanks
Robert Lee