Tables trouble

Viktoras Didziulis viktoras at ekoinf.net
Tue Mar 13 04:49:45 EDT 2007


Hi! 
 
I have seen Tables object fixed in the previous beta release of the
Revolution... Still, if you need just an elementary table to display or edit
tab delimited data with earlier versions of Rev, then this is your way to
start with: 
1) use ordinary text field 
or 
select your table, click property inspector, go to table section, disable
(uncheck) table object, 
2) leave or check Horizontal grid and Vertical grid 
3) adjust cells width with Tab stops (e.g. smthng like 200,300, 500 etc...) 
4) put these scripts into the text field to force it to behave more like
table:
#This will prevent deletion of cell or table row with delete key
on deleteKey 
if the selectedText is not empty then 
pass deleteKey 
else 
answer "Select text to delete" 
exit deleteKey 
end if 
end deleteKey 
 
#This will prevent deletion of cell or table row with backspace key
on backspaceKey 
if the selectedText is not empty then 
pass backspaceKey 
else 
answer "Select text to delete" 
exit backspaceKey 
end if 
end backspaceKey 
 
#This won't alow to spoil table layout with return key
on returnInField 
 
end returnInField 
 
#This won't alow to spoil table layout with enter key
on enterInField 
 
end enterInField
 
All the best!
Viktoras
 



More information about the use-livecode mailing list