Page 1 of 1

[ANN] bnGuides alignment tool on livecodeshare

Posted: Tue Dec 18, 2018 4:43 pm
by bn
I have put a stack "bnGuides" on livecodeshare (or access it from "Sample Stacks" from within LC).
It is best used as a plugin.

http://livecodeshare.runrev.com/stack/918/BnGuides

bnGuides.png

It helps with visual guides to align objects. It complements the build-in alignment tool.
Feedback welcome.

Kind regards
Bernd

Re: bnGuides alignment tool on livecodeshare

Posted: Tue Dec 18, 2018 5:19 pm
by bogs
This works very well, thank you Bernd!

If your coming from a VB or Delphi background, or any number of other IDEs which feature a visual alignment tool, I cannot recommend adding this to your plugins enough, it makes alignment and layout a snap.

I give it two big thumbs up and a crown!
ImageImage

Re: bnGuides alignment tool on livecodeshare

Posted: Thu Dec 20, 2018 9:01 am
by AndyP
This is excellent work...most useful.

I have this now set to start with LC, it should be a standard part of the LC ide.

Thank you.

Re: bnGuides alignment tool on livecodeshare

Posted: Thu Dec 20, 2018 9:19 am
by bn
Thank you Bogs and Andy,

I am glad you like it.

Kind regards
Bernd

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Thu Mar 28, 2019 10:42 pm
by bn
bnGuides has been updated to version 0.5.0

The update fixes some instances where graphics used by bnGuides were not properly removed from the target stack.

Additionally it adds the option to display distances to nearest neighbors when setting the capsLock-key.
Thanks bogs for suggesting "distances" and beta testing.

Please read the help file for more information.

As before bnGuides works from LC 5.5 and up. Use it as plugin.


guidePlusDistance.png
guides and distances
guidePlusDistance.png (16.08 KiB) Viewed 1434 times

You can download it from
http://livecodeshare.runrev.com/stack/918/BnGuides

or from within Livecode -> Sample Stacks

Kind regards
Bernd

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Thu Mar 28, 2019 10:52 pm
by bogs
< Rubbing my greedy lil hands together > Thanks Bernd! :mrgreen:

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Fri Mar 29, 2019 7:18 am
by Thierry
Hallo Bernd,


Was waiting for this kind of tool since such a long time....

sunnY- 2019-03-29 à 07.14.07.png

Congrats for this brilliant tool and thanks for my kids :)

mit freundlichen Grüßen,

Thierry

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Mon Apr 01, 2019 11:53 pm
by capellan
Hi Bernd,

Thanks a lot for updating your stack! :D

On Mac, I copy and pasted the stack plugin into
the LiveCode plugins folder but after opening
the plugin inside Livecode IDE, a message appears
asking me to put the stack inside the plugin folder.
Screen Shot 2019-04-01 at 6.45.29 PM.png
message 1 screenshot
After clicking the button "Move me to plugin folder" then
this message appears:
Screen Shot 2019-04-01 at 6.46.21 PM.png
message 2 screenshot
Screen Shot 2019-04-01 at 6.46.21 PM.png (17.44 KiB) Viewed 1313 times
and finally, after closing and reopening LiveCode, the plugin now shows
this error:
Screen Shot 2019-04-01 at 6.46.59 PM.png
error 1 screenshot
Al

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Tue Apr 02, 2019 12:05 am
by bn
Hi Al,

once you have put the stack into your plugins folder you should start the stack from the Development Menu -> Plugins.

What probably happened is that the stack is set up to move itself into the plugins folder if you start it from anywhwere except the plugins folder. That is where the installation routine tripped.

Does bnGuides work for you if you start it via Development -> PlugIns?

Kind regards
Bernd

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Tue Apr 02, 2019 1:43 am
by capellan
Hi Bernd,

The plugin does not work even if I start it from
the Plugin menu.

The error shows that a selected control
should have a script or a behavior named
"initializeScript" but I could not find this
in the selected control.

When does the selected control get this
script or behavior? When I click on them?

By the way, my Mac requires password to
install any software. Could this be the
source of this problem?

Al

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Tue Apr 02, 2019 8:52 am
by bn
The plugin does not work even if I start it from
the Plugin menu.
I have no idea why.
When does the selected control get this
script or behavior? When I click on them?
Yes, when you select a control it gets a behavior set, either the control if it has no behavior or the last behavior of the chain of behaviors of the selected control. The behavior button in bnGuides is "bnGuideBehavior2" = button id 1005.
By the way, my Mac requires password to
install any software. Could this be the
source of this problem?
I do not think so, once installed it should work.

I would try to delete bnGuides from the plugins folder and download a fresh copy. Install that manually into the plugins folder and try to start from Development - Plugins. For the first time start it when you are in browse mode. Though that should not make a difference.

It baffles me what happens to you. Maybe we can solve this.

Kind regards
Bernd

Re: [ANN] bnGuides alignment tool on livecodeshare

Posted: Thu Apr 04, 2019 1:24 am
by capellan
Hi All,

bnGuides alignment tool is working fine now
in my own setup! :D

The culprit was that opencard handler was
not running when I opened the stack.

I changed opencard for openstack and
replaced the original script for a shorter
script that Bernd send to my email.

Many Thanks Bernd!

Al