Application.SetPageProperties Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • TimeSurfer
    Forum Member
    • Dec 2007
    • 479

    Application.SetPageProperties Bug

    There seems to a bug in the Application.SetPageProperties action.

    here's the code I have but yet it will not change the page bg image.

    its in a winbutton on click event.

    Code:
    tblPageProps = {};
    tblPageProps.BackgroundType = BG_IMAGE;
    tblPageProps.ImageFilename = "AutoPlay\Images\2.png";
    tblPageProps.ImageStretchMode = BG_IMG_FITPAGE;
    Application.SetPageProperties("Page1", tblPageProps);
    if anyone knows wats wrong or how to fix please let me know.

    thanks,
    timesurfer
  • Dermot
    Indigo Rose Customer
    • Apr 2004
    • 1791

    #2
    You need to escape the \

    Code:
    tblPageProps.ImageFilename = "AutoPlay\[COLOR="Red"]\[/COLOR]Images\[COLOR="red"]\[/COLOR]2.png";
    Dermot

    I am so out of here :yes

    Comment

    • TimeSurfer
      Forum Member
      • Dec 2007
      • 479

      #3
      thanks for the prompt reply dermot. after escaping the \ like you said. I'm still having a problem its still not working. im clueless

      Comment

      • Dermot
        Indigo Rose Customer
        • Apr 2004
        • 1791

        #4
        Check the name of the page and the name of the image. Make sure the image exists.

        You may want to use this.
        Code:
        tblPageProps.ImageFilename = _SourceFolder.."\\AutoPlay\\Images\\2.png";
        Dermot

        I am so out of here :yes

        Comment

        • TimeSurfer
          Forum Member
          • Dec 2007
          • 479

          #5
          k ill give er a whirl, thanks again dermot appreciate it

          Comment

          • TimeSurfer
            Forum Member
            • Dec 2007
            • 479

            #6
            still doesnt seem to work. im thinking im gonna have to use the image object =9 sadly. if you would like to view the full project to see exactly what im doing. its under thread Application.SetPageProperties help in am7 forum.

            thanks again dermot.

            Comment

            • Dermot
              Indigo Rose Customer
              • Apr 2004
              • 1791

              #7
              You are masking the page so think that is your problem.
              Last edited by Dermot; 01-01-2008, 02:10 PM.
              Dermot

              I am so out of here :yes

              Comment

              • TimeSurfer
                Forum Member
                • Dec 2007
                • 479

                #8
                ahhh ok that makes since. ill play around with the window.setmask a bit to see if i need to change that as well. i really appreciate the help bro thanks again.

                Comment

                Working...
                X