Polygrid - I'm in love but am I being respectful?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bbalmerTotalFluency
Posts: 84
Joined: Mon Apr 06, 2020 1:19 pm
Contact:

Polygrid - I'm in love but am I being respectful?

Post by bbalmerTotalFluency » Sat Jul 27, 2024 5:45 am

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Polygrid - I'm in love but am I being respectful?

Post by Klaus » Sat Jul 27, 2024 10:59 am

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: 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
...
2. Edit the ARRAY 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 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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10077
Joined: Fri Feb 19, 2010 10:17 am

Re: Polygrid - I'm in love but am I being respectful?

Post by richmond62 » Sat Jul 27, 2024 1:35 pm

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:
-
Screenshot 2024-07-27 at 15.38.05.png
-
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?

stam
Posts: 3061
Joined: Sun Jun 04, 2006 9:39 pm

Re: Polygrid - I'm in love but am I being respectful?

Post by stam » Sat Jul 27, 2024 9:38 pm

richmond62 wrote:
Sat Jul 27, 2024 1:35 pm
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?
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.

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10077
Joined: Fri Feb 19, 2010 10:17 am

Re: Polygrid - I'm in love but am I being respectful?

Post by richmond62 » Sun Jul 28, 2024 2:56 am

That makes some sense.

But I still wonder why there cannot be a 10 day trial.

bbalmerTotalFluency
Posts: 84
Joined: Mon Apr 06, 2020 1:19 pm
Contact:

Re: Polygrid - I'm in love but am I being respectful?

Post by bbalmerTotalFluency » Sun Jul 28, 2024 4:10 am

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.

Post Reply