DataGrid Problem

Charles Szasz cszasz at mac.com
Wed Dec 21 11:12:09 EST 2011


Hi Pete!

I am using the Form version of DataGrid and not a table. The form is a scrolling field. I have one field "strategy" that displays statements from an array. This works fine. But as I stated before I have not been able to add an Edit Field (field "freq").

When I include the following code for a Edit Field (field "freq") in the Behavior script, the statements from my Strategy field disappears!

on FillInData pDataArray 
   set the text of field "Strategy" of me to pDataArray["Strategy"]
   set the text of field "freq" of me to empty
end FillInData


on LayoutControl 
   local theFieldRect,theMasterRect
  
   put the rect of me into theMasterRect
   
   put the rect of field "Strategy" of me into theMasterRect
   set the left of field "Strategy" of me to item 1 of theMasterRect
   
   put the rect of field "freq" of me into theMasterRect
   set the right of field "freq" of me to item 4 of theMasterRect
   
   put the rect of grc "Background" of me into r
   set the rect of grc "Background" of me to r
end LayoutControl

Any suggestions would be greatly appreciated!

Charles Szasz
cszasz at mac.com







More information about the use-livecode mailing list