Why is the geometry manager still borked in 2021?!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Why is the geometry manager still borked in 2021?!
The GM has always had issues. I often used it though, and mostly it was ok, but if it went wrong, it generally went majorly screwed up wrong.
I always felt the response was sort of "old timers have come to realise it's not great, and just as easy if not easier to manage your own layout scripting" so there never seemed to be a will to fix it.
I can agree that there other priorities, but it would be nice to have a robust GM. To be fair, it does work, except when it doesn't, which is definitely the minority of occasions.
I always felt the response was sort of "old timers have come to realise it's not great, and just as easy if not easier to manage your own layout scripting" so there never seemed to be a will to fix it.
I can agree that there other priorities, but it would be nice to have a robust GM. To be fair, it does work, except when it doesn't, which is definitely the minority of occasions.
Re: Why is the geometry manager still borked in 2021?!
And not to mention Brian has already given a fix for this; i've used it and it works as expected, it's just having to remember to run that line of code.
Re: Why is the geometry manager still borked in 2021?!
I have always created the user interface of the application by code.
But lately I have seen the system that uses flutter and I am wondering why not use it in LiveCode.
I said it and I did it.
Look at the attached image.
It is a project that is under development, but interfaces can already be created at the level of any modern environment.
Now we are trying to implement the CSS3 Grid system. This has given us a lot of headaches, but we are not defeated yet.
It may not be the right place to put this post. But it is important that they know what can be done
We hope to finish soon to release the library
But lately I have seen the system that uses flutter and I am wondering why not use it in LiveCode.
I said it and I did it.
Look at the attached image.
It is a project that is under development, but interfaces can already be created at the level of any modern environment.
Now we are trying to implement the CSS3 Grid system. This has given us a lot of headaches, but we are not defeated yet.
It may not be the right place to put this post. But it is important that they know what can be done
We hope to finish soon to release the library
Last edited by andresdt on Thu Jul 21, 2022 6:09 pm, edited 1 time in total.
Re: Why is the geometry manager still borked in 2021?!
Sorry for getting a bit off-topic, but what happend to your lovely "PolyGrid"?
-
- Posts: 40
- Joined: Sun Dec 13, 2015 6:05 pm
Re: Why is the geometry manager still borked in 2021?!
Due to COVID we had to stop working together and currently we have no way to commercialize the PolyGrid and several other projects because of this, but we are working on it.
Last edited by prometheus on Sun Aug 01, 2021 9:41 pm, edited 1 time in total.
Re: Why is the geometry manager still borked in 2021?!
Thank you for the info!
Re: Why is the geometry manager still borked in 2021?!
I think I'd better preface here that I'm really not trolling the discussion...
But....
I have no problem with the GM. It's always worked fine for me. I have occasionally in the past added in calls to revCacheGeometry and revUpdateGeometry to manually cause updates.
But I'm certainly not opposed to doing Geo manually, and probably would do that if I was building a substantial commercial app (e.g. possibly in combination with something like Levure frameworks broadcast system so an object can listen for messages to update it's position broadcasterListenForBroadcasts etc).
~ Rodney
But....
I have no problem with the GM. It's always worked fine for me. I have occasionally in the past added in calls to revCacheGeometry and revUpdateGeometry to manually cause updates.
But I'm certainly not opposed to doing Geo manually, and probably would do that if I was building a substantial commercial app (e.g. possibly in combination with something like Levure frameworks broadcast system so an object can listen for messages to update it's position broadcasterListenForBroadcasts etc).
~ Rodney
Re: Why is the geometry manager still borked in 2021?!
Yes agreed, mostly it works OK and if you add calls to revCacheGeometry and reUpdateGeometry, then all is good and actually manual positioning is not required.
However the problem is that without those calls, you can run it extremely weird geometry changes; and most newcomers to LC (as well as experienced users!) won't know to do that. And really why should you have to add those calls or do this manually if you have an otherwise nice tool - that's really what the issue is about.
I think Panos mentioned it should be an easy fix, so why not just get it fixed
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Why is the geometry manager still borked in 2021?!
Newcomers
I tell kids I teach that the Geometry manager is "a coming man already gone"
and then show them how to scale using codes in the stackScript or cardScript.
I tell kids I teach that the Geometry manager is "a coming man already gone"
and then show them how to scale using codes in the stackScript or cardScript.
Re: Why is the geometry manager still borked in 2021?!
We have two different views:
1) LC staff have been using GM for years with success.
2) various users who claim it's broken or unreliable
One of 2) came to be 1) after staff at a conference showed him how to use it.
Seems obvious to me that LC Ltd need to have a conferences session video on how they successfully use the GM.
I can tell you now that the 20 years ago I gave up using Java mainly because the Eclipse IDE was so damn awful to use. Didn't matter how many tutorials I followed or how many books I bought, it was an exercise in frustration. And that's just as a code editor, not doing something like geometry management in a highly dynamic GUI tool.
Why don't people email support asking for this videoed session on how to use the GM?
1) LC staff have been using GM for years with success.
2) various users who claim it's broken or unreliable
One of 2) came to be 1) after staff at a conference showed him how to use it.
Seems obvious to me that LC Ltd need to have a conferences session video on how they successfully use the GM.
I can tell you now that the 20 years ago I gave up using Java mainly because the Eclipse IDE was so damn awful to use. Didn't matter how many tutorials I followed or how many books I bought, it was an exercise in frustration. And that's just as a code editor, not doing something like geometry management in a highly dynamic GUI tool.
Why don't people email support asking for this videoed session on how to use the GM?
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Why is the geometry manager still borked in 2021?!
How about an old-fashioned 5-10 page manual with illustrations?videoed session
Re: Why is the geometry manager still borked in 2021?!
Well you do have a point; this could be lesson or video tutorial.
Unfortunately, the lesson/video tutorial that does exist mentions nothing about revCacheGeometry or revUpdateGeometry. So yes, you could update the lessons/vidoes and explain that in fact it's not broken, you just need to add some extra steps. As it stands, if you follow the lesson exactly you may end up sorely disappointed.
OR you could just change the GM include these changes automatically, so it becomes a non-issue.
As a user with no historical baggage, i know i'd prefer the latter because i'm lazy. And i consider laziness a good attribute
But yes, armed with this knowledge i use the GM regularly and can get it to work. It's just that it's now the last thing i do in a project because i can't be bothered continuously adding code to make the GM work...
Re: Why is the geometry manager still borked in 2021?!
As an initial constructive step I have filed an enhancement request to update the Geo properties pane to provide tip for users experiencing issues (point them at trevCacheGeometry or revUpdateGeometry and explain where to use.
This is a 20 minute update, so if there isn't resource to refactor this library it will at least be an incremental improvement for users.
https://quality.livecode.com/show_bug.cgi?id=23282
This is a 20 minute update, so if there isn't resource to refactor this library it will at least be an incremental improvement for users.
https://quality.livecode.com/show_bug.cgi?id=23282
Re: Why is the geometry manager still borked in 2021?!
Morning All,
Yesterday I had planned to learn the GM; but after reading the first page of this thread I decided to write a resizeStack handler instead. Two cards with over 1K controls (albeit 1024 of them are grouped to form a 32 x 32 grid). Grouping controls that maintain fixed positions in relation to each other and repositioning them as a group seems easier and more straightforward than applying the GM.
Something else I didn't see mentioned in this thread: if your stack includes a dataGrid, the list of controls the GM displays includes large number of objects in the Data Grid Templates stack.
Cheers!
Yesterday I had planned to learn the GM; but after reading the first page of this thread I decided to write a resizeStack handler instead. Two cards with over 1K controls (albeit 1024 of them are grouped to form a 32 x 32 grid). Grouping controls that maintain fixed positions in relation to each other and repositioning them as a group seems easier and more straightforward than applying the GM.
Something else I didn't see mentioned in this thread: if your stack includes a dataGrid, the list of controls the GM displays includes large number of objects in the Data Grid Templates stack.
Cheers!
Rob Cozens dba Serendipity Software Company
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
Manchester, CA USA
Each new generation gives more attention to the man-made world...
and less attention to the world that made man.
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Why is the geometry manager still borked in 2021?!
And there's also:
3) those who find the GM unnecessary, enjoying working directly with the engine's straightforward, robust, predictable elegance which lies underneath the added layer of the GM script library anyway.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn