Como puedo hacer que en la ultima columna de mi grid aparezca una imagen y que no salga en la primera columna.
Gracias
Hello,
How can I make an image appear in the last column of my grid and not appear in the first column?
Thank you
Code: Select all
#include "hmg.ch"
Function Main
aItems := {}
AADD (aItems, {"Carrot", 5 , 0 } )
AADD (aItems, {"Cauliflower", 0 , 0 })
AADD (aItems, {"Corn", 15 , 0 })
AADD (aItems, {"Tomato", 0 , 0 })
AADD (aItems, {"Zucchini", 20 , 0 })
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 600 ;
HEIGHT 400 ;
MAIN
@ 10,10 GRID Grid_1 ;
WIDTH 550 ;
HEIGHT 330 ;
HEADERS {'Product','Stock',"DEL"} ;
WIDTHS {250,150,40};
ITEMS aItems;
ON CHANGE Test_Value();
EDIT;
CELLNAVIGATION;
END WINDOW
Form_1.Grid_1.ColumnJUSTIFY (2) := GRID_JTFY_RIGHT
Form_1.Grid_1.Image (.T.) := {"_No.bmp" }
FOR i = 1 TO Form_1.Grid_1.ItemCount
Form_1.Grid_1.ImageIndex (i,3) := 0 // _No.bmp
NEXT
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return
Procedure Test_Value
Return