Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding image to pages in pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Adding image to pages in pageframe
Divers
Thread ID:
01643603
Message ID:
01643603
Vues:
71
Hi there,

In my application I often add an image-control to forms to set a background-picture. I now tried this
with the pages pf the pageframe-control by using the following code:
FOR i = 1 TO thisform.pf.Pagecount
    thisform.pf.Pages[i].addobject("img_back","image")
    WITH thisform.pf.Pages[i].img_back
      .ZOrder(1)
      .left = 0
      .top = 0
      .Height = Thisform.pf.Height
      .Width = Thisform.pf.Width
      .Anchor = 15
      .picture = "D:\foxprogs\foxbib\images\blueform.png"    
    Endwith
Next
But this does not work. The image is added but when it comes to the next-statement width and height are "reset" to a value
of 1. Can someone tell me what I am doing wrong or missing?

Thanks in advance

Thomas
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform