Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form
Message
From
18/12/2002 08:01:42
 
 
To
17/12/2002 10:04:21
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00733553
Message ID:
00734041
Views:
20
Hi Bob,

>Actually, there is a way to do it, using a windows API. I remember reading it somewhere. I can't remember if it was a tip or an article. Basically, there is an API to make your VFP form OS level modal.

I've found SetParent WinAPI function and put this code in Init event:
declare integer SetParent in win32api integer, integer
setparent(This.HWnd,0)
It works, well, almost :). Modal form appears as top-level, but sometimes is hidden behind others. It definitely needs further investigations...
It would be better, if VFP8 have native top-level modal forms.

Best,
Janusz Czudek
WORD Software
http://www.wordsoft.com.pl
Previous
Reply
Map
View

Click here to load this message in the networking platform