Results 1 to 8 of 8

Thread: Graphics Library

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    608

    Default Graphics Library

    Vincent very nice job in my limited test. Downloaded and installed in my vdf14 area - I know it is not supported. Changed the library to vdf14 and was able to attach a Jpeg image to the samples app. Looks like FXImage will be on the way out..


  2. #2
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    608

    Default Re: Graphics Library

    Code:
     
    Object oDbImageContainer1 is a cWsDbImageContainer //cDbImageContainer
          Entry_Item (gsPhotoPath-EMPLOYEE.NO-".jpg")
          //Entry_Item EMPLOYEE.NO
          Set Size to 73 71
          Set Location to 9 120
          Set peImageStyle to ifFitBothSides
          Set Bitmap_Style to Bitmap_Stretch
    End_Object
    I am wanting to use the above code and get a 'Can't create..' error because of the Entry_Item. This is how I display stuff using the FXImage control. Is it possible or do I need to create a new field. The photopath can change depending on a WS and the type of record, so I was hoping not to hardwire this path in.

  3. #3
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    608

    Default Re: Graphics Library

    I guess this is not possible?

  4. #4
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Graphics Library

    Peter,

    Entry_Item with expression fails. We will place this on the research list for the future. Meanwhile you can use:
    Code:
    Procedure Refresh Integer iMode
        Forward Send Refresh iMode
        Set psImage to (gsPhotoPath-EMPLOYEE.NO-".jpg")
    End_Procedure
    PS: What is the datatype of EMPLOYEE.NO ? When it is not a string you need to convert it to string. So:
    Code:
    Procedure Refresh Integer iMode
        Forward Send Refresh iMode
        Set psImage to (gsPhotoPath-String(EMPLOYEE.NO)-".jpg")
    End_Procedure
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  5. #5
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    608

    Default Re: Graphics Library

    Thanks that solved the problem. Yes Employee.No is an Ascii. Just added it into the Object and removed the Entry_Item.

  6. #6
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: Graphics Library

    Peter,

    I confirmed that you need to do the same with an object of the dbBitmap class.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  7. #7
    Join Date
    Mar 2016
    Location
    Central FL
    Posts
    28

    Default Re: Graphics Library

    Another thumbs up for the forum and the Graphics Library.
    I too tried an expression entry_item but went the Function route and no dice. We have years of data with several "changed" naming schemes of images so I really needed a more conditional approach. This workaround (apparently still needed) works fine for my needs. Brought life back to some of our older data & possibilities for new. -thanks

  8. #8
    Join Date
    Feb 2009
    Location
    Granada (Spain)
    Posts
    360

    Default Re: Graphics Library

    Hi,

    It works great for me too. Very nice job!

    But I agree with Peter, I need some like "Entry_Item ("")".

    But your solution appoint me in the right way to solve my problem.

    Maybe in the next release It be possible to put a dbimagen in dbgrid with variable size?

    Regards
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Graphics Library.jpg 
Views:	245 
Size:	123.1 KB 
ID:	2700  
    Regards,

    Antonio Jiménez
    Granada (Spain)

Similar Threads

  1. Graphics Library for 16.0?
    By Peter van Mil in forum DataFlex Graphics Library
    Replies: 3
    Last Post: 14-Sep-2010, 03:36 AM
  2. Graphics library problem
    By Jim Albright in forum DataFlex Graphics Library
    Replies: 4
    Last Post: 5-Jan-2010, 02:21 PM
  3. C:\Visual DataFlex 14.1 Libraries\Graphics Library 0.9
    By ApplauseBoston in forum DataFlex Graphics Library
    Replies: 0
    Last Post: 20-Apr-2009, 10:11 AM
  4. VDF 2008.1 Library - ADHOCDBGRID library
    By Mark Powers in forum Windows Applications
    Replies: 3
    Last Post: 28-Jan-2009, 01:03 PM
  5. 2D-Graphics
    By Chris Stammen in forum Code Library
    Replies: 5
    Last Post: 10-Feb-2005, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •