Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Functions on _screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00799396
Message ID:
00799930
Vues:
22
Not all of the _SCREEN methods/events can be used with this technique. Looks like you've found one that doesn't work.


>Hi,
>
>is there a possibility to use the OLEDragDrop procedure of the screen? I tried the following:
>
>_screen.OLEDragMode=1
>_screen.NewObject("oSh","ScreenHook","screenhook.prg")
>
>DEFINE CLASS Screenhook as Custom
>
> oScr = _screen
> oScr.oledragmode=1
>
> FUNCTION oScr.OLEDragDrop(oDataObject, nEffect, nButton, nShift, nXCoord, nYCoord)
> MESSAGEBOX("Olè. Viva Èspana!")
> ENDFUNC
>
> FUNCTION oScr.Click()
> MESSAGEBOX("Clicked.")
> ENDFUNC
>
>ENDDEFINE
>
>The click event works while the OLEDragDrop doesnt do anything. No error, no result. Just sleeping.
>
>...gerhard...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform