dgHilitedLine Function
Posted: Wed Aug 21, 2013 8:57 pm
Hi,
I am having a problem with this function. I managed to place my images in a datagrid, but the images are not displayed as thumbnails, they are just the various jpg file name. I am trying to use this function, so that when i click on one image name, the image would appear on the image area. Below is my code & i can't seem to see whats wrong. Please help me. This is the code in my button. Can someone guide me on how i can do this function.
on mouseUp
local tFolder
put field "Folder" into tFolder
set the defaultFolder to tFolder
put the files into x
set the dgText of group "Data Grid" to x
if pBtnNum is 1 then
put the dgHilitedLines of group "Data Grid" into theLine
put the dgDataOfLine[theLine] of group "Data Grid" into theDataA
put the dgDataOfLine[theLine]of group "Data Grid" into img "ImageArea"
answer theLine
end if
end mouseUp
I am having a problem with this function. I managed to place my images in a datagrid, but the images are not displayed as thumbnails, they are just the various jpg file name. I am trying to use this function, so that when i click on one image name, the image would appear on the image area. Below is my code & i can't seem to see whats wrong. Please help me. This is the code in my button. Can someone guide me on how i can do this function.
on mouseUp
local tFolder
put field "Folder" into tFolder
set the defaultFolder to tFolder
put the files into x
set the dgText of group "Data Grid" to x
if pBtnNum is 1 then
put the dgHilitedLines of group "Data Grid" into theLine
put the dgDataOfLine[theLine] of group "Data Grid" into theDataA
put the dgDataOfLine[theLine]of group "Data Grid" into img "ImageArea"
answer theLine
end if
end mouseUp