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..
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..
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.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 guess this is not possible?
Peter,
Entry_Item with expression fails. We will place this on the research list for the future. Meanwhile you can use:
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-EMPLOYEE.NO-".jpg") End_Procedure
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
Thanks that solved the problem. Yes Employee.No is an Ascii. Just added it into the Object and removed the Entry_Item.
Peter,
I confirmed that you need to do the same with an object of the dbBitmap class.
Regards,
Data Access Worldwide
Vincent Oorsprong
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
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
Regards,
Antonio Jiménez
Granada (Spain)