Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding image to pages in pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Adding image to pages in pageframe
Miscellaneous
Thread ID:
01643603
Message ID:
01643603
Views:
70
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
Next
Reply
Map
View

Click here to load this message in the networking platform