Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I make a custom messagebox work like messagebox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01236031
Message ID:
01236056
Vues:
14
>>
>>I'm not exactly sure I got your question, but I know Craig Boyd has a very interesting hook (See http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,f7644db8-b155-4d43-8216-4cfde233edb7.aspx )
>>
>>For my purpose I use my own Statistics form as a messagebox replacement when I need Print functionality and ability to scroll long messages. I have it in the Downloads section here.
>
>
>I might be able to adapt something based on Craig Boyd's example, but I am hoping to find a way to just tweak what I have.
>
>For example:
>I have a function key I capture to save the contents of a form. I implement this by setting form.KeyPreview = .t. and then handling the key press in form.KeyPress(). If in the keypress code I call MESSAGEBOX() it displays the message but doesn't trigger any events on my form. If I call my TCHMSG() function, it causes LostFocus() to occur for whatever field I am in on the form.
>
>I would like to be able to display my custom TCHMSG form without triggering any events on the calling form.

If you're using a custom form, I'm not sure you would be able to by-pass event sequences. It may be only possible if you draw window with some Windows API code and would not use VFP form.

But I don't know details, it is more for API gurus question then.

Or just simply go with Ed's idea :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform