Re: [ANN] bnGuides has been updated

2021-10-12 Thread Bob Sneidar via use-livecode
IOC! If an object is selected, THAT is when the behavior is applied, and when 
deselected THAT is when the behavior is removed. Works as advertised then. :-) 
To test I closed your stack after deselecting the button then checked the 
behavior again, which was cleared. 

Bob S


> On Oct 11, 2021, at 16:58 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:42:20 -0700
>> 
>> I see. I think I did not maky myself clear. With the object inspector open 
>> and 
>> the behavior tab selected, before dragging the object with the pointer tool, 
>> there is no behavior registered. Upon dragging the object, the tool works as 
>> advertised, and that is the coolest thing since sliced bread, however the 
>> behavior for bnGuides is registered in the inspector, and remains registered 
>> even after I stop dragging the object. 
> 
> Just in case I did not make it clear: the behavior is removed when the 
> selection of the dragged is, well, deselected. Independend of dragging.
> 
> To see that in the Properties inspector you would have to lock the Properties 
> Inspector for that object and after deselecting the object you would have to 
> change the tab in the Properties Inspector and go back to the "Behavior" tab 
> to see that the behavior is gone.
> 
> Kind regards
> Bernd


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:42:20 -0700
> 
> I see. I think I did not maky myself clear. With the object inspector open 
> and 
> the behavior tab selected, before dragging the object with the pointer tool, 
> there is no behavior registered. Upon dragging the object, the tool works as 
> advertised, and that is the coolest thing since sliced bread, however the 
> behavior for bnGuides is registered in the inspector, and remains registered 
> even after I stop dragging the object. 

Just in case I did not make it clear: the behavior is removed when the 
selection of the dragged is, well, deselected. Independend of dragging.

To see that in the Properties inspector you would have to lock the Properties 
Inspector for that object and after deselecting the object you would have to 
change the tab in the Properties Inspector and go back to the "Behavior" tab to 
see that the behavior is gone.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
I see. I think I did not maky myself clear. With the object inspector open and 
the behavior tab selected, before dragging the object with the pointer tool, 
there is no behavior registered. Upon dragging the object, the tool works as 
advertised, and that is the coolest thing since sliced bread, however the 
behavior for bnGuides is registered in the inspector, and remains registered 
even after I stop dragging the object. 

The same symptoms occur in a simple stack with two buttons, and does so even 
with the revNavigator stack closed. I quit Livecode so all of my own projects 
were closed, and tried again with a simple stack, and got the same results. 

HTH

Bob S


> On Oct 11, 2021, at 16:33 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:07:53 -0700
>> 
>> Sorry, no love. I made the change as you suggested, but the behavior 
>> property 
>> of the object still retains the bnGuides behavior. 
> 
> 
> Bob,
> I assume that the behavior that sticks was added after you made the changes 
> to bnGuides and that it is not a behavior that was added before you made the 
> changes to bnGuides.
> Maybe a short test with a new stack and a couple of controls that you inspect 
> via Navigator while in Browse Mode.
> 
> Then I will have to investigate further because in my testing bnGuides does 
> not add a behavior to a control when in "Browse" mode and Navigator or the 
> Project Browser selects a control as a feedback for the target.
> 
> Kind regards
> Bernd


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
FYI all my actions have been in pointer mode. 

Bob S


> On Oct 11, 2021, at 16:21 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Mark Wieder wrote:
> 
> On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:
> 
>if the tool <> "pointer tool" then
>   exit revSelectedObjectChanged
>end if
> 
> 
> Wouldn't that still be a problem if something else (e.g. the Project Browser) 
> selects an object?
> 
> 
> 
> Not that I can see. bnGuides just stays out of this if Navigator or the 
> Project Browser selects a control when the tool is browse tool.
> If you are in browse mode you will not and can not move controls around for 
> layout.
> 
> But maybe I am not seeing all implications.
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via use-livecode Mon, 11 Oct 2021 16:07:53 -0700
> 
> Sorry, no love. I made the change as you suggested, but the behavior property 
> of the object still retains the bnGuides behavior. 


Bob,
I assume that the behavior that sticks was added after you made the changes to 
bnGuides and that it is not a behavior that was added before you made the 
changes to bnGuides.
Maybe a short test with a new stack and a couple of controls that you inspect 
via Navigator while in Browse Mode.

Then I will have to investigate further because in my testing bnGuides does not 
add a behavior to a control when in "Browse" mode and Navigator or the Project 
Browser selects a control as a feedback for the target.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
Mark Wieder wrote:

On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:

if the tool <> "pointer tool" then
   exit revSelectedObjectChanged
end if


Wouldn't that still be a problem if something else (e.g. the Project Browser) 
selects an object?



Not that I can see. bnGuides just stays out of this if Navigator or the Project 
Browser selects a control when the tool is browse tool.
If you are in browse mode you will not and can not move controls around for 
layout.

But maybe I am not seeing all implications.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Sorry, no love. I made the change as you suggested, but the behavior property 
of the object still retains the bnGuides behavior. 

Bob S


> On Oct 11, 2021, at 15:38 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar 
>> 
>>  wrote
> 
>> It was an old version so I imagine that was the issue. I got the new version
>> and am testing it in my IDE. I'll let you know if there are any issues.
> 
> 
> 
> I think I know what is going on.
> 
> Navigator selects the object to indicate the target. That triggers a 
> selectedObjectChanged message.
> 
> I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
> the "pointer tool"
> 
> 
> If you add the following conditional to the card script in handler 
> revSelectedObjectChanged
> 
> 
> 
> on revSelectedObjectChanged
>   local tSelected, tSelectedOne
> 
>   ## dont set behavior if the tool is not "pointer tool"
>   ## i.e. editing layout of controls
>   if the tool <> "pointer tool" then
>  exit revSelectedObjectChanged
>   end if
> 
> you should be fine. I will have to put out a new version which catches that.
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Hi Bernd. 

Yes the problem persists. I won't attempt this with an object that already has 
a behavior for fear it may break the link. 

By the way, one unintended (or otherwise intended) "feature" of this handy 
little utility is that you can drag items that are lockLoc'd. I actually like 
that! 

Bob S


> On Oct 11, 2021, at 15:38 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar 
>> 
>>  wrote
> 
>> It was an old version so I imagine that was the issue. I got the new version
>> and am testing it in my IDE. I'll let you know if there are any issues.
> 
> 
> 
> I think I know what is going on.
> 
> Navigator selects the object to indicate the target. That triggers a 
> selectedObjectChanged message.
> 
> I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
> the "pointer tool"
> 
> 
> If you add the following conditional to the card script in handler 
> revSelectedObjectChanged
> 
> 
> 
> on revSelectedObjectChanged
>   local tSelected, tSelectedOne
> 
>   ## dont set behavior if the tool is not "pointer tool"
>   ## i.e. editing layout of controls
>   if the tool <> "pointer tool" then
>  exit revSelectedObjectChanged
>   end if
> 
> you should be fine. I will have to put out a new version which catches that.
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 3:38 PM, Niggemann, Bernd via use-livecode wrote:


if the tool <> "pointer tool" then
   exit revSelectedObjectChanged
end if


Wouldn't that still be a problem if something else (e.g. the Project 
Browser) selects an object?


--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar 
> 
>  wrote

> It was an old version so I imagine that was the issue. I got the new version
> and am testing it in my IDE. I'll let you know if there are any issues.



I think I know what is going on.

Navigator selects the object to indicate the target. That triggers a 
selectedObjectChanged message.

I naively assumed that would only happen when in "Edit mode" i.e. the tool is 
the "pointer tool"


If you add the following conditional to the card script in handler 
revSelectedObjectChanged



on revSelectedObjectChanged
   local tSelected, tSelectedOne

   ## dont set behavior if the tool is not "pointer tool"
   ## i.e. editing layout of controls
   if the tool <> "pointer tool" then
  exit revSelectedObjectChanged
   end if

you should be fine. I will have to put out a new version which catches that.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
It was an old version so I imagine that was the issue. I got the new version 
and am testing it in my IDE. I'll let you know if there are any issues. 

Bob S


> On Oct 11, 2021, at 13:13 , Niggemann, Bernd via use-livecode 
>  wrote:
> 
>> Bob Sneidar via 
>> use-livecode
>>  Mon, 11 Oct 2021 11:01:44 
>> -0700
> 
>> Concerning the issue of the revNavigator item being red and unckickable, I
>> found that the behavior had not been removed. It was a simple edit to remove
>> the stranded behavior.
> 
> 
> 
>> On Oct 11, 2021, at 10:56 , Bob Sneidar 
>> http://iotecdigital.com>> wrote:
>> 
>> Where would I get the latest? I have rev .05, but I noted in your notes that
>> "A behavior is temporarily attached to the object..." What happens to the
>> existing behavior if there is one? I noticed that having selected a button
>> with bnGuides open, revNavigator shows that object in a red color, and I can
>> no longer double click the object in revNavigator to get the script object.
>> 
> 
> Bob,
> 
> the behavior used by bnGuides is set to a control. If that control already 
> has a behavior/behaviors set then bnGuides
> sets its behavior to the last in the chain of behaviors and removes it when 
> the control is not selected anymore.
> 
> Do you have a recipe for an unremoved behavior set by bnGuides?
> 
> I have not tested bnGuides when revNavigator is in use. Maybe I should.
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
> Bob Sneidar via 
> use-livecode
>  Mon, 11 Oct 2021 11:01:44 
> -0700

> Concerning the issue of the revNavigator item being red and unckickable, I
> found that the behavior had not been removed. It was a simple edit to remove
> the stranded behavior.



> On Oct 11, 2021, at 10:56 , Bob Sneidar 
> http://iotecdigital.com>> wrote:
>
> Where would I get the latest? I have rev .05, but I noted in your notes that
> "A behavior is temporarily attached to the object..." What happens to the
> existing behavior if there is one? I noticed that having selected a button
> with bnGuides open, revNavigator shows that object in a red color, and I can
> no longer double click the object in revNavigator to get the script object.
>

Bob,

the behavior used by bnGuides is set to a control. If that control already has 
a behavior/behaviors set then bnGuides
sets its behavior to the last in the chain of behaviors and removes it when the 
control is not selected anymore.

Do you have a recipe for an unremoved behavior set by bnGuides?

I have not tested bnGuides when revNavigator is in use. Maybe I should.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Niggemann, Bernd via use-livecode
Thank you Roger for the kind words.

I think I did not announce the update on the use-list. It fixes a bug when 
returning from "Edit Group" via "Stop Editing"

bnGuides is a plug-in that shows guides to place UI-objects.

I announced the update here:
https://forums.livecode.com/viewtopic.php?f=4=31920=209453=3c72aae96597f167ba6cb9882dd8413d#p209370

and you can find bnGuides on livecodeshare

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

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Mark Wieder via use-livecode

On 10/11/21 10:56 AM, Bob Sneidar via use-livecode wrote:


Livecode.com resources is not working. I cannot download this using that site. 
Clicking on anything after searching for it just reloads the page.


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

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Concerning the issue of the revNavigator item being red and unckickable, I 
found that the behavior had not been removed. It was a simple edit to remove 
the stranded behavior. 

Bob S


> On Oct 11, 2021, at 10:56 , Bob Sneidar  wrote:
> 
> Where would I get the latest? I have rev .05, but I noted in your notes that 
> "A behavior is temporarily attached to the object..." What happens to the 
> existing behavior if there is one? I noticed that having selected a button 
> with bnGuides open, revNavigator shows that object in a red color, and I can 
> no longer double click the object in revNavigator to get the script object. 
> 
> Livecode.com resources is not working. I cannot download this using that 
> site. Clicking on anything after searching for it just reloads the page. 
> 
> Bob S
> 
> 
>> On Oct 11, 2021, at 09:48 , Roger Guay via use-livecode 
>>  wrote:
>> 
>> bnGuides is unobtrusive and efficient, cute even. I like it a lot!
>> 
>> I added a script to alternately collapse and expand it making it even more 
>> unobtrusive.
>> 
>> When it comes to UI design, you never get a second chance to make to make a 
>> first impression!
>> 
>> Thank you, Bernd
>> 
>> Roger
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Bob Sneidar via use-livecode
Where would I get the latest? I have rev .05, but I noted in your notes that "A 
behavior is temporarily attached to the object..." What happens to the existing 
behavior if there is one? I noticed that having selected a button with bnGuides 
open, revNavigator shows that object in a red color, and I can no longer double 
click the object in revNavigator to get the script object. 

Livecode.com resources is not working. I cannot download this using that site. 
Clicking on anything after searching for it just reloads the page. 

Bob S


> On Oct 11, 2021, at 09:48 , Roger Guay via use-livecode 
>  wrote:
> 
> bnGuides is unobtrusive and efficient, cute even. I like it a lot!
> 
> I added a script to alternately collapse and expand it making it even more 
> unobtrusive.
> 
> When it comes to UI design, you never get a second chance to make to make a 
> first impression!
> 
> Thank you, Bernd
> 
> Roger
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2021-10-11 Thread Roger Guay via use-livecode
bnGuides is unobtrusive and efficient, cute even. I like it a lot!

I added a script to alternately collapse and expand it making it even more 
unobtrusive.

When it comes to UI design, you never get a second chance to make to make a 
first impression!

Thank you, Bernd

Roger



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2019-03-31 Thread Mark Wieder via use-livecode

On 3/31/19 2:37 PM, Matthias Rebbe via use-livecode wrote:

the new feature to display distances is awesome! Thank you very much for this.


I set my copy to load in the background on IDE launch because I don't 
want to be without it. If the Plugin settings menu worked I would have 
used that, but it was a simple matter to set the following custom 
properties:


custompropertyset: cREVLoadInfo
custom properties:
inMenu: true
load: startup
mode: Invisible

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2019-03-31 Thread Matthias Rebbe via use-livecode
the new feature to display distances is awesome! Thank you very much for this.

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de 
https://winsignhelper.dermattes.de 

> Am 28.03.2019 um 22:56 schrieb Niggemann, Bernd via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
> 
> bnGuides a tool to visually aid in alignment of controls has been updated to 
> version 0.5.0
> 
> if fixes some instances where bnGuides did not delete temporary graphics on 
> the target stack.
> 
> Additionally it adds the optional display of distances to nearest neighbors. 
> (capsLock-key toggles display of distances)
> Thanks to bogs from the forum for suggesting "distances" and beta testing.
> 
> You can download it from within Livecode -> Sample Stacks
> or 
> http://livecodeshare.runrev.com/stack/918/BnGuides 
> 
> 
> see also 
> https://forums.livecode.com/viewtopic.php?p=178245#p178244
> 
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [ANN] bnGuides has been updated

2019-03-31 Thread Mike Kerner via use-livecode
Bernd needs his own submenu in LC.

On Thu, Mar 28, 2019 at 5:57 PM Niggemann, Bernd via use-livecode <
use-livecode@lists.runrev.com> wrote:

> bnGuides a tool to visually aid in alignment of controls has been updated
> to version 0.5.0
>
> if fixes some instances where bnGuides did not delete temporary graphics
> on the target stack.
>
> Additionally it adds the optional display of distances to nearest
> neighbors. (capsLock-key toggles display of distances)
> Thanks to bogs from the forum for suggesting "distances" and beta testing.
>
> You can download it from within Livecode -> Sample Stacks
> or
> http://livecodeshare.runrev.com/stack/918/BnGuides
>
> see also
> https://forums.livecode.com/viewtopic.php?p=178245#p178244
>
> Kind regards
> Bernd
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode