Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 440

Getting Started with LiveCode - Experienced Developers • Re: Polygrid - I'm in love but am I being respectful?

$
0
0
Hi Bruce,
I feel like a domestic abuser to the beauty that is polygrid
please DON'T! Like in showbiz, behind the curtains it will get a bit ugly. :D

There are several ways to do so and they are "similar" to datagrid actions.
Using your example -> modify cell 3,3
1. Edit the TEXT of row 3:

CODE:

...## Tell the widget what row (line) we are interested in:set the pgInternalPointer of widget "pgWhatever" to "3"put the pgTextOfRow of widget "pgWhatever" into tText## Now modify "column" 3:set itemdel to TABput tNewValue into item 3 of tTextset the pgTextOfRow of widget "pgWhatever" to tText...
2. Edit the ARRAY of row 3:

CODE:

...## Tell the widget what row (line) we are interested in:set the pgInternalPointer of widget "pgWhatever" to "3"put the pgDataOfRow of widget "pgWhatever" into tArray## Now modify "column" 3:put tNewValue into tArray["name of this column here"]set the pgDataOfRow of widget "pgWhatever" to tArray...
Maybe there are more ways, but that should get you started. :-)

Best

Klaus

Statistics: Posted by Klaus — Sat Jul 27, 2024 10:59 am



Viewing all articles
Browse latest Browse all 440

Trending Articles