Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveX Controls Disabling on a Modal Form
Message
De
08/08/2001 04:09:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/08/2001 03:05:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00541120
Message ID:
00541124
Vues:
30
>Hi All,
>
>I have a modal form with an ActiveX control on it, this form is modal.
>On this form I also have a button which calls another form using "DO FORM...".
>
>The second form is not modal, but it behaves like a modal form as it was called from a modal form, this is normal. The problem is when the second form is closed
>and you return to the first form, the ActiveX control stops responding to mouse
>input.
>
>SO far I have found 2 ways to stop this:
>
>1. Specify the second form to be modal on its property sheet.
>2. Make the ActiveX control invisible before calling the other form and then making it visible when the other form is closed.
>
>Both of these workarounds are unacceptable as the second form is called from other locations where it can't be modal, and making the control invisible looks very bad.
>
>So far I have found this on the following controls in VFP 6 & 7:
>1. "MSComCtlLib.ListViewCtrl.2"
>2. "MSComCtlLib.Slider.2"
>
>The only remotely similar thing on could find at Microsoft is this which does not apply at all.
>
>Does anybody have any ideas on this problem?
>
>Thanks,
>
>Chris Ormerod

Activex are always a problem :(
This workaround is not smart but works :

thisform.Hide
thisform.Show(2) && Make this modeless
do form Other name oDummy
oDummy.Hide
oDummy.Show(1) && Make it modal
thisform.Hide
thisform.Show(1) && Back to modal

On a fast computer like mine what happens is almost gone unnoticable.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform