Title: PictureFlow Post by: ed m. on July 03, 2010, 08:41:57 pm Does anyone have example code for using the Table.pictureFlow style? Can't seem to get it to work. I'm using 2.21.04
Thanks! Title: Re: PictureFlow Post by: . on July 04, 2010, 05:37:52 pm Ed,
you can try the following: in your .4st file, add: Code
This will allow: - to use image cache and not reload images everytime - define a picture flow image, with a background and no border A small .per: Code
And the 4gl: IMPORT os DEFINE files DYNAMIC ARRAY OF STRING MAIN DEFINE restart SMALLINT OPEN FORM f FROM "pFLOW" DISPLAY FORM f CALL populate( ARG_VAL(1) ) IF files.getLength() > 0 THEN DISPLAY ARRAY files TO sr.* BEFORE ROW DISPLAY files[arr_curr()] TO nm ON KEY (F5) CALL populate( "" ) END DISPLAY END IF END MAIN FUNCTION populate(path) DEFINE path STRING DEFINE child STRING DEFINE h, idx INTEGER Code
This small test case is aimed to be run with fglrun running on the same machine as GDC. Code
will display c:\mypics images in the pictureflow. Let me know if it works on your side. Title: Re: PictureFlow Post by: ed m. on July 06, 2010, 02:44:45 pm perfect! thanks Pierre!
I see what I was doing wrong. In the .per file, you used an image control: IMAGE a = FORMONLY.a; I was trying to use an edit control (since I thought it only needed the name of the file). Thanks again, -Ed |