Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assing procedure to a control at runtime
Message
De
26/06/2000 09:58:08
 
 
À
25/06/2000 08:03:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00367170
Message ID:
00384602
Vues:
37
Rajesh, here is a copy of my thread, you may have your answers already, this is what I am try to do, if you have better idea, I'd appreciate if you can share it with me.

**************************************************************************
I am trying to develop a simple "debugging tool" to be able to run on the user's machine. By hitting an F-key, it pops up an edit box to enter command, the results display in a window. I would like to make this program to run on any active form. So far I've made it to work in develop environment, but it does not work when I run .EXE from outside of VFP. One thing I noticed is that when I run .EXE, no Form object is created in memory, when I try to add edit box to an active form dynamically, I get "object xxx not found".
>
>Here is my code:
>
>FormName=_Screen.ActiveForm.Name && NAME OF THE ACTIVE FORM
>&FormName..AddObject('DiagCmd','_editbox')
>WITH &FormName..DiagCmd
> .Height = 24
> .Left = 12
> .Top = 13
> .Width = 432
> .SelectedForeColor = RGB(255,255,255)
> .SelectedBackColor = RGB(0,0,0)
> .ControlSource = "DiagCmdTxt"
> .Name = "DiagCmd"
> .Visible = .T.
>ENDWITH
>
>
>Any idea? Thanks in advance!
Previous
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform