Announcement

Collapse
No announcement yet.

Replacing System Images

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Replacing System Images

    What is wrong with this statement of mine, where I replaced a standed "SysatemHappyFace" (and the statement worked) with my own little GIF file, which does not work. I verified the file exists. I tried the slashes in the other direction -- no change -- did not work. And two "nulls" also did not work.

    drawImageRelative(0, vBounceHILevel, "d:\alex\open.gif", null, Image.RIGHT | Image.ONTOP);

    here are notes from PaperBroker.efs:

    // SystemHappyFace is a builtin image type. These are documents in the EFS docs/ref guides
    // You can also replace SystemHappyFace with a filepath to a gif/jpg/bmp on your computer
    // eg: c:/somefolder/picture.jpg
    drawImageRelative(-50, 50, "SystemHappyFace", "EFS:ImageCallBack", null, "ImageTag");
    Last edited by alexmihh; 02-21-2006, 01:29 PM.

  • #2
    guessing here..

    because I have not had a chance to try this. these are my initial thoughts..

    A. the file needs to be in the same directory as the other images
    B. there is no need to include file extensions in the call

    I'll try it later..

    B
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      Re: guessing here..

      Originally posted by Doji3333
      because I have not had a chance to try this. these are my initial thoughts..

      A. the file needs to be in the same directory as the other images
      B. there is no need to include file extensions in the call

      I'll try it later..

      B
      A) " ...as the other images" Well, if you are refering to the system images. they are not in any directory in esignal, so this answer does not make sense.

      b) "there is no need..." well that would be strange, and it goes against the notes in the esignal-provided efs example (Paperbroker.efs) and article #1796


      Here is info from EFS article #1796

      *************

      eSignal Graphics Functions.

      - drawImageRelative and drawImageAbsolute

      drawImageRelative(xBar, yValue, Image, Url, Flags, TagName);
      drawImageAbsolute(xBar, yValue, Image, Url, Flags, TagName);

      The drawImage functions allows users to display any "user-defined" image or an image from a set of system images. Images are different than "Shapes" in their content. Images contain items such as "happy faces", "Check Marks", "Circles" and other common image files. The drawImage feature is ideal for Non Trading System display functions.

      drawImageRelative allows placement of images onto charts that are relative to the active real-time chart. This means that the images move/scroll to the left as new bars are formed on the chart.

      drawImageAbsolute allows placement of images onto charts that are fixed and do not move/scroll to the left as new bars are formed.


      Parameters

      xBar - Refers to the bar index (bar number) where the graphic is to be placed.

      yValue - Refers to the Y location of the image - or price value where the image is to be placed.

      Image - refers to the image type to display on the chart.

      A system image can be used, or an image on the local file system can be referenced (eg: c:/someimage.bmp"). Supported image types are GIF, BMP, JPG, PNG, …

      *********
      Notice how even this information is inaccurate with the extra (or missing) quotation marks in the filename.

      Comment


      • #4
        Does anyone here have any hrlp on this? I can not get this to work, and esignal documentation is scanty

        Comment


        • #5
          Hello alexmihh,

          I have not been able to get this to work in build 738 either. I've reported this bug to our development team as EDL #21966.
          Jason K.
          Project Manager
          eSignal - an Interactive Data company

          EFS KnowledgeBase
          JavaScript for EFS Video Series
          EFS Beginner Tutorial Series
          EFS Glossary
          Custom EFS Development Policy

          New User Orientation

          Comment


          • #6
            Originally posted by JasonK
            Hello alexmihh,

            I have not been able to get this to work in build 738 either. I've reported this bug to our development team as EDL #21966.
            Well, I am glad it was not me. I was going nuts

            Comment

            Working...
            X