Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ctl32_statusbar - dealing with objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01273023
Message ID:
01273024
Vues:
14
>I am not good yet when dealing with objects
>
>I copied the classes to my folder and then tried
>the simple exemple below
>
>******************************************************
>
>If Not Pemstatus(_Screen,"StatusBar", 5) Then
>
> _Screen.Newobject("StatusBar", "ctl32_statusbar", "ctl32_statusbar.vcx")
>
>Endif
>
>
>oStatusBar.ProgressBar.Repeat = .T.
>
>oStatusBar.ProgressBar.Play = .T.
>
>oStatusBar.ProgressBar.Visible = .T.
>
>
>************************************************************
>
>I have the message:
>
>oStatusBar object not found
>
>Which is the object ? what is missing ?


You added the object to _screen container so you must reference it there:
If Not Pemstatus(_Screen,"StatusBar", 5) Then

_Screen.Newobject("StatusBar", "ctl32_statusbar", "ctl32_statusbar.vcx")

Endif


_Screen.StatusBar.ProgressBar.Repeat = .T.

_Screen.StatusBar.ProgressBar.Play = .T.

_Screen.StatusBar.ProgressBar.Visible = .T.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform