Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft StatusBar Control 6.0
Message
 
À
26/02/2002 13:02:32
Dennis Little
Ist Choice Travel
Glos, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00624980
Message ID:
00626691
Vues:
10
Darn. I don't know, then. It seemed like LoadPicture was from other class or somthing. This is an example in the help file for VB:
Add Method (Panels Collection) Example
This example uses the Add method to add three new Panel objects to a StatusBar
control. To use the example, place a StatusBar control on a form and paste the 
code into the form's Declarations section. Run the example.

Private Sub Form_Load()
Dim pnlX As Panel
  ' Add blank panel as a spacer
  Set pnlX = StatusBar1.Panels.Add()
  pnlX.AutoSize = sbrSpring
  pnlX.MinWidth = 1
  ' Add a panel with a clock icon and time style.
  Set pnlX = StatusBar1.Panels.Add _
  (, , , sbrTime, LoadPicture("Graphics\icons\misc\clock03.ico"))
  ' Add second panel, with bitmap and Date style.
  Set pnlX = StatusBar1.Panels.Add _
  (, , , sbrDate, LoadPicture("Graphics\bitmaps\assorted\calendar.bmp"))
  ' Set Bevel property for last Panel object.
  pnlX.Bevel = sbrInset ' Inset bevel.
  pnlX.Alignment = sbrRight ' Set Alignment property for last object.
  ' Set Text and AutoSize properties for first (default )Panel object.
  StatusBar1.Panels(1).Text = "Add Panel Example"
  StatusBar1.Panels(1).AutoSize = sbrContents
I have no idea how to use the LoadPicture method in VFP, though. I don't know where it comes from. By looking at this code, it doesn't seem to be a method of the StatusBar control, else you have some thing preceding the LoadPicture function (like StatusBar1.LoadPicture or something).


>That's not it either unless the syntax is wrong
>
>THISFORM.oleStatusBar.Panels[1].LoadPicture([C:\path\filename.ext])
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform