[ANN] bnGuides alignment tool on livecodeshare

Find out what's going on with LiveCode (the company), product releases, announcements, and events.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Sat Jan 02, 2021 11:58 pm

OK loving this plugin even more now, thank guys...
Really gotta wonder why this isn't built into the IDE already...

bogs
Posts: 5443
Joined: Sat Feb 25, 2017 10:45 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bogs » Sun Jan 03, 2021 10:09 am

I have often wondered the very same thing myself. I wish I could tell you why, but have no idea.
Image

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 147
Joined: Tue Feb 23, 2010 10:53 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bobcole » Sun Jan 03, 2021 6:41 pm

Bernd:
This is a brilliant tool!
Many thanks for making it available.
Bob

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Sun Aug 29, 2021 1:29 pm

@bernd - re: error with groups.

Not infrequently when working with groups an error is thrown by bnGuides - something about the selected object not found.

To get rid of this I have to close down bnGuides, ensure no object is selected then relaunch bnGuides and select something. Then it tends to work ok. Tho is only something I’ve semi-regularly experienced using groups (as in moving or editing and then stop editing and moving.

I’ll be honest I haven’t paid exact attention to the recipe to reproduce this error but will post here if I do, with screenshots etc.

Stam

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4107
Joined: Sun Jan 07, 2007 9:12 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bn » Sun Aug 29, 2021 2:54 pm

stam wrote:
Sun Aug 29, 2021 1:29 pm
@bernd - re: error with groups.

Not infrequently when working with groups an error is thrown by bnGuides - something about the selected object not found.

To get rid of this I have to close down bnGuides, ensure no object is selected then relaunch bnGuides and select something. Then it tends to work ok. Tho is only something I’ve semi-regularly experienced using groups (as in moving or editing and then stop editing and moving.

I’ll be honest I haven’t paid exact attention to the recipe to reproduce this error but will post here if I do, with screenshots etc.

Stam
I would be interested in a recipe. I tried all kind of things with groups, in edit mode or not and have not yet seen that.

Kind regards
Bernd

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by mwieder » Sun Aug 29, 2021 6:30 pm

Stam-

You may be running into something with behaviors. Some time back I tried modifying bnGuides to be in the background all the time because it's so useful I didn't want to be without it.

But bnGuides assigns a behavior script to the object(s) being moved and then removes that behavior afterwards. If you've got a chain of behaviors then this can mess things up if you use it too much. Enabling bnGuides when needed and then closing it afterwards seems to work fine.

I haven't found a good way around this. Possibly assigning the behavior temporarily at the end of the behavior chain, but I haven't looked into that.

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Sun Aug 29, 2021 8:27 pm

Yes that sounds about right. Behaviours are probably the issue as I use them liberally.

I’m currently on a Greek island so can’t investigate further right now (more for business that for vacation, but it’s hard not to go into vacation mode on a Greek island!) but will confirm when I’m back.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by mwieder » Sun Aug 29, 2021 8:48 pm

Heh. Enjoy the "business" then.

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Sun Aug 29, 2021 10:27 pm

bn wrote:
Sun Aug 29, 2021 2:54 pm
I would be interested in a recipe. I tried all kind of things with groups, in edit mode or not and have not yet seen that.

Kind regards
Bernd
I have replicated the error i get by doing this:
I have this group on a card. It has a behaviour script attached to it (as i have several such groups on the card, it makes sense to centralise the script)
group.jpg
If i move the group no problem, alignment works as expected.. If i 'edit group', so some aligning of the controls inside it again, no problem.
If I then 'stop editing' and try to move the group, the first thing that happens is this:
error.jpg
then unless i kill the handler in bnGuides that is causing the problem (possibly drawLeftX), these error messages constantly pop up:
error2.jpg
Happens with enough frequency that it's become a slight annoyance...
This doesn't happen with devguides...

Hope that helps narrow down the issue - as @mwieder mentioned this may well be due to the existing behaviour script as it I can't replicate this with simple groups without a behaviour attached.
Stam

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Sun Aug 29, 2021 11:06 pm

bn wrote:
Sun Aug 29, 2021 2:54 pm
I would be interested in a recipe. I tried all kind of things with groups, in edit mode or not and have not yet seen that.
Hi Bernd,
I attach a stripped down stack that can reproduce the issue.
The peculiarities in this case are that group contain sub-groups (although I haven't tested to see if this happens if that's not the case), and you have to at least select or move a sub-group to trigger the issue.

The stack contains explicit instructions on how to reproduce the error...

Hope this helps!
Stam
Attachments
bnGuideTest.livecode.zip
(4.58 KiB) Downloaded 297 times

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4107
Joined: Sun Jan 07, 2007 9:12 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bn » Sun Aug 29, 2021 11:11 pm

stam wrote:
Sun Aug 29, 2021 11:06 pm
bn wrote:
Sun Aug 29, 2021 2:54 pm
I would be interested in a recipe. I tried all kind of things with groups, in edit mode or not and have not yet seen that.
Further to this i attach a stripped down stack that can reproduce the issue.
The peculiarities in this case are that group contain sub-groups (although I haven't tested to see if this happens if that's not the case)

The stack contains explicit instructions on how to reproduce the error...

Hope this helps!
Stam
Thank you for that stack. I will investigate it and try to find a remedy. (If I ever come back from the nested behavior land)

KInd regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4107
Joined: Sun Jan 07, 2007 9:12 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bn » Wed Sep 01, 2021 7:50 am

Hi Stam,

I have a hard time debugging the problem you describe when coming back from "Edit Group" to normal editing via "Stop Editing". However you can avoid the problem of the debugger popping up by deselecting any selection when you come back from "Edit Group" and reselecting the group you are targeting.
Also in case the debugger pops up clicking on the blue debugger button stops the debugger and you can resume your work normally. No need to quit Livecode.

The problem is that there is no message I have found to know when the user returns from "Edit Group" and take action.

I will investigate further but can not make any promises.

Kind regards
Bernd

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Wed Sep 01, 2021 7:51 am

Thanks Bernd, will keep in mind….

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4107
Joined: Sun Jan 07, 2007 9:12 pm

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by bn » Tue Sep 07, 2021 11:49 am

In response to @Stam who reported a bug when using bnGuides 0.5.0 after "Editing Groups" I think I have found the reason.
When in "Edit Group" mode and using bnGuides the guides are created within the group that is edited. After "Stop Editing" the guides are within the group and the attempt to set the layer of the guides to Top resulted in an error.

Here is version bnGuides 0.5.2 which in my testing avoids the error described above.

I would be grateful if this could be tested before I upload the new version to Livecodeshare/Sample Stacks

Kind regards
Bernd
Attachments
bnGuides_0_5_2.livecode.zip
(31.51 KiB) Downloaded 307 times

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

Re: [ANN] bnGuides alignment tool on livecodeshare

Post by stam » Tue Sep 07, 2021 11:02 pm

Thanks Bernd, will give it a test when possible!

Post Reply

Return to “Announcements”