Polygrid - I'm in love but am I being respectful?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 84
- Joined: Mon Apr 06, 2020 1:19 pm
- Contact:
Polygrid - I'm in love but am I being respectful?
Hi:
The more I use it the more I love it. Polygrid is aesthetically charming,fast, elegant and generally a joy to use.
BUT...
Say I want to update cell 3,3 of my polygrid. At the moment my solution is
put the text of widget "pgWhatever" into t
put tNewValue into item 3 of line 3 of t
set the text of widget "pgWhatever" to t
Principle merit: it works
Principle cause of my sense of horror: I feel like a domestic abuser to the beauty that is polygrid. Is there a better way?
By the way, most of my polygrids are small relatively speaking (a few hundred rows at most) - so finding a more efficient way hasn't been forced on me. But I do hate inelegant programming when an elegant solution exists. I tried updating the pgData but have not yet succeeded.
Ashamed, of Thailand
The more I use it the more I love it. Polygrid is aesthetically charming,fast, elegant and generally a joy to use.
BUT...
Say I want to update cell 3,3 of my polygrid. At the moment my solution is
put the text of widget "pgWhatever" into t
put tNewValue into item 3 of line 3 of t
set the text of widget "pgWhatever" to t
Principle merit: it works
Principle cause of my sense of horror: I feel like a domestic abuser to the beauty that is polygrid. Is there a better way?
By the way, most of my polygrids are small relatively speaking (a few hundred rows at most) - so finding a more efficient way hasn't been forced on me. But I do hate inelegant programming when an elegant solution exists. I tried updating the pgData but have not yet succeeded.
Ashamed, of Thailand
Re: Polygrid - I'm in love but am I being respectful?
Hi Bruce,
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:
2. Edit the ARRAY of row 3:
Maybe there are more ways, but that should get you started. 
Best
Klaus
please DON'T! Like in showbiz, behind the curtains it will get a bit ugly.I feel like a domestic abuser to the beauty that is polygrid

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: Select all
...
## 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 TAB
put tNewValue into item 3 of tText
set the pgTextOfRow of widget "pgWhatever" to tText
...
Code: Select all
...
## 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
...

Best
Klaus
-
- Livecode Opensource Backer
- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Re: Polygrid - I'm in love but am I being respectful?
Working with a 10-day trial of LC 9.6.13 I am trying to find out where the polygrid is . . .
. . . Ah: it is something for which you have to pay EXTRA, on top of the LC license:
- -
I wonder how many people are as stupid as I am, and are not prepared to risk $299 for something they have had no chance to try out?
. . . Ah: it is something for which you have to pay EXTRA, on top of the LC license:
- -
I wonder how many people are as stupid as I am, and are not prepared to risk $299 for something they have had no chance to try out?
Re: Polygrid - I'm in love but am I being respectful?
Most would have bought the summer megabundle when this was released. It was clearly going to be an asset, and the bundle, while appearing pricey, did actually offer a lot of value much cheaper than buying individual components.richmond62 wrote: ↑Sat Jul 27, 2024 1:35 pmI wonder how many people are as stupid as I am, and are not prepared to risk $299 for something they have had no chance to try out?
As to the price, it’s probably on par with what you see with plugins for equivalent IDEs like XOJO on the face of it XOJO is cheaper but unless you buy a ton of plugins your experience will not be great.
Bottom line is things are for developers trying to make a profit, and don’t target tinkerers/hobbyists/free users.
-
- Livecode Opensource Backer
- Posts: 10077
- Joined: Fri Feb 19, 2010 10:17 am
Re: Polygrid - I'm in love but am I being respectful?
That makes some sense.
But I still wonder why there cannot be a 10 day trial.
But I still wonder why there cannot be a 10 day trial.
-
- Posts: 84
- Joined: Mon Apr 06, 2020 1:19 pm
- Contact:
Re: Polygrid - I'm in love but am I being respectful?
Klaus:
Thank you. That was the more "programmer" way of doing it that I was looking for.
As to the guy with the 10 day trial request - I'm a big believer in free trials, myself.
For me the polygrid is very much like the Apple Watch. It's cool. I like having one. It has not changed my life. For me, it's a very marginal purchase. I use the polygrid because I produce stuff for me (and like it to look good and perform well) and for clients where those aren't even optional.
If I were a hobbyist, I'd likely regret my purchase. It's expensive for the difference it makes. As a semi-pro semi-commercial developer, the assessment of value is different. And I enjoy the sheer elegance of it - which is why I was unhappy that my coding was not conforming to the approach the developer of the widget had in mind
I don't talk to them often, but the Livecode gang seem deeply reasonable people (more a group of humans formed into a company than one of those psychopathic American corporations). I'd ask about a free trial. Perhaps there are others who feel the same way, perhaps it's possible.
Thank you. That was the more "programmer" way of doing it that I was looking for.
As to the guy with the 10 day trial request - I'm a big believer in free trials, myself.
For me the polygrid is very much like the Apple Watch. It's cool. I like having one. It has not changed my life. For me, it's a very marginal purchase. I use the polygrid because I produce stuff for me (and like it to look good and perform well) and for clients where those aren't even optional.
If I were a hobbyist, I'd likely regret my purchase. It's expensive for the difference it makes. As a semi-pro semi-commercial developer, the assessment of value is different. And I enjoy the sheer elegance of it - which is why I was unhappy that my coding was not conforming to the approach the developer of the widget had in mind
I don't talk to them often, but the Livecode gang seem deeply reasonable people (more a group of humans formed into a company than one of those psychopathic American corporations). I'd ask about a free trial. Perhaps there are others who feel the same way, perhaps it's possible.