DataGrid and option menu
Trevor DeVore
lists at mangomultimedia.com
Sat Apr 11 20:26:50 EDT 2009
On Apr 11, 2009, at 3:43 PM, Yves COPPE wrote:
> ...
> BUT
>
> whan I quit the stack and open the stack again, then the values of
> all the btns on each line of the colum are reset to the first line
> (menuHistory 1)
>
> How can i retain the menuHistory of each line of the column with the
> option menu btn ??
Hmm, SetDataOfIndex/SetDataOfLine aren't updating the internal cache
when "persistent data" is checked in the Property Inspector. I've
fixed SetDataOfIndex so that it works property with "persistent data"
for the next version. The workaround is to use dgDataOfIndex/
dgDataOfLine instead.
on menuPick pChosenItem
put the dgDataOfIndex [the dgIndex of me] into theDataA
put pChosenItem into theDataA [the dgColumn of me]
set the dgDataOfIndex [the dgIndex of me] to theDataA
end menuPick
Regards,
--
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com - www.screensteps.com
More information about the use-livecode
mailing list