Re: Navigator 7.2rc1 is available

2019-01-27 Thread Geoff Canyon via use-livecode
7.2.1rc1 is available

There is now a checkbox in the prefs to fold dataGrids by default. Also, I
fixed the custom property editor to work even if custom properties have the
same name as built-in properties, updated the display of folded controls,
and updated Navigator's property editor to do a soft display update when
setting values, so changing the name of controls will be reflected when the
editor is closed.

Fixes:
https://github.com/gcanyon/navigator/issues/27
https://github.com/gcanyon/navigator/issues/26
https://github.com/gcanyon/navigator/issues/24

Updates:
https://github.com/gcanyon/navigator/issues/19

On Fri, Jan 25, 2019 at 9:13 PM Geoff Canyon  wrote:

> The fold control bar uses this stack as its behavior: stack
> "rev_g_groupFoldBar"
>
> That script is:
>
> on mouseUp
>put getID(barClickLine()) into CL
>if the number of lines of CL > 1 or word 1 of CL is not "group" then
> exit mouseUp
>setFolded CL
>doUpdateDisplay true
> end mouseUp
>
> So it's pretty much down to three things:
>
> 1.a. Does barClickLine() return the proper line?
> 1.b. Does getID() return the right ID? And is it the long ID?
> 2. Does setFolded work?
> 3. Does doUpdateDisplay do something to reset the folds before displaying?
> (This is what was wrong the last time).
>
> One thing to try would be this:
>
> dispatch "setFolded" to stack "revNavigator" with (the long id of  group navigator is displaying>),true
>
> Navigator won't immediately update its display, but clicking in
> Navigator's list or selecting Update List Now on the Action menu should do
> it, and then that group should be displayed folded. I just did this and it
> worked for me. If this works for you then we've narrowed the problem down
> to 1. If it doesn't work, then 2 or 3.
>
> gc
>
> On Fri, Jan 25, 2019 at 3:11 PM Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
>> Nope. Running LC 9.0.2 Community, MacOS 10.14.2, Navigator 7.2 RC1. If
>> you point me to where the folding code actually happens, I can turn on rev
>> development and trace it.
>>
>> Bob S
>>
>>
>> > On Jan 25, 2019, at 14:16 , Geoff Canyon via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> >
>> > I'm not seeing this? I tried both with a specific stack and (what I
>> > remember from the last time) "this card of the topstack". Folding is
>> > working for me, both by clicking in the margin, and by selecting a fold
>> > level on the popup menu for a card or group.
>> >
>> > Any specific recipe?
>> >
>> > gc
>>
>>
>> ___
>> 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: Navigator 7.2rc1 is available

2019-01-25 Thread Geoff Canyon via use-livecode
The fold control bar uses this stack as its behavior: stack
"rev_g_groupFoldBar"

That script is:

on mouseUp
   put getID(barClickLine()) into CL
   if the number of lines of CL > 1 or word 1 of CL is not "group" then
exit mouseUp
   setFolded CL
   doUpdateDisplay true
end mouseUp

So it's pretty much down to three things:

1.a. Does barClickLine() return the proper line?
1.b. Does getID() return the right ID? And is it the long ID?
2. Does setFolded work?
3. Does doUpdateDisplay do something to reset the folds before displaying?
(This is what was wrong the last time).

One thing to try would be this:

dispatch "setFolded" to stack "revNavigator" with (the long id of ),true

Navigator won't immediately update its display, but clicking in Navigator's
list or selecting Update List Now on the Action menu should do it, and then
that group should be displayed folded. I just did this and it worked for
me. If this works for you then we've narrowed the problem down to 1. If it
doesn't work, then 2 or 3.

gc

On Fri, Jan 25, 2019 at 3:11 PM Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Nope. Running LC 9.0.2 Community, MacOS 10.14.2, Navigator 7.2 RC1. If you
> point me to where the folding code actually happens, I can turn on rev
> development and trace it.
>
> Bob S
>
>
> > On Jan 25, 2019, at 14:16 , Geoff Canyon via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I'm not seeing this? I tried both with a specific stack and (what I
> > remember from the last time) "this card of the topstack". Folding is
> > working for me, both by clicking in the margin, and by selecting a fold
> > level on the popup menu for a card or group.
> >
> > Any specific recipe?
> >
> > gc
>
>
> ___
> 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: Navigator 7.2rc1 is available

2019-01-25 Thread Bob Sneidar via use-livecode
Nope. Running LC 9.0.2 Community, MacOS 10.14.2, Navigator 7.2 RC1. If you 
point me to where the folding code actually happens, I can turn on rev 
development and trace it. 

Bob S


> On Jan 25, 2019, at 14:16 , Geoff Canyon via use-livecode 
>  wrote:
> 
> I'm not seeing this? I tried both with a specific stack and (what I
> remember from the last time) "this card of the topstack". Folding is
> working for me, both by clicking in the margin, and by selecting a fold
> level on the popup menu for a card or group.
> 
> Any specific recipe?
> 
> gc


___
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: Navigator 7.2rc1 is available

2019-01-25 Thread Geoff Canyon via use-livecode
I'm not seeing this? I tried both with a specific stack and (what I
remember from the last time) "this card of the topstack". Folding is
working for me, both by clicking in the margin, and by selecting a fold
level on the popup menu for a card or group.

Any specific recipe?

gc

On Fri, Jan 25, 2019 at 1:32 PM Geoff Canyon  wrote:

> Bah, I’ll take a look later today.
>
> gc
>
> > On Jan 25, 2019, at 1:19 PM, Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > Hate to do this to you Geoff but the groups are not folding again.
> >
> > I click in the shaded area nothing. I right click on the name of the
> group and select fold level 1, nothing.
> >
> > Bob S
> >
> >
> > ___
> > 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: Navigator 7.2rc1 is available

2019-01-25 Thread Geoff Canyon via use-livecode
Bah, I’ll take a look later today. 

gc

> On Jan 25, 2019, at 1:19 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hate to do this to you Geoff but the groups are not folding again. 
> 
> I click in the shaded area nothing. I right click on the name of the group 
> and select fold level 1, nothing. 
> 
> Bob S
> 
> 
> ___
> 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: Navigator 7.2rc1 is available

2019-01-25 Thread Bob Sneidar via use-livecode
Hate to do this to you Geoff but the groups are not folding again. 

I click in the shaded area nothing. I right click on the name of the group and 
select fold level 1, nothing. 

Bob S


___
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


Navigator 7.2rc1 is available

2019-01-24 Thread Geoff Canyon via use-livecode
As usual, you can get Navigator here
. Or grab it
from GitHub .

For details read the release notes
, but briefly
this:

-- fixes the color sets being borked by an earlier release.
-- significantly improves the relayering code -- again.
-- -- It was a minor thing, but it should now be possible to have a group
be the topmost object, and drag a control below it in Navigator's list, and
have the control *not* placed into the group, which is now consistent with
the behavior in any other circumstance.
-- -- Also, there were circumstances where Navigator would start editing a
group to place a control into the group, and then fail, leaving the group
in edit mode. This should now be fixed.
-- -- Finally, the relayering code has again been simplified. Details below
if anyone is curious -- it's weird.

If you find any bugs, file them here
.



To achieve uniform behavior with the simplest code, here are (most of) the
relayering steps in pseudo LC:

set relayergroupedcontrols to true
set layer to 1 -- this gets the control out of any groups it is in
set relayergroupedcontrols to false
set layer to 999 -- the control is now at the highest level
if target is group then
   set relayergroupedcontrols to true
   set the layer to 1 + the layer of the target group -- the control is now
in the group
   set relayergroupedcontrols to false
   start editing group
   set layer to 999 -- the control is now at the highest level of the
group
end if
if targetobject is not empty -- the object to place the control just under
-- if empty, the control should remain at the top
then set the layer to the layer of the targetobject -- works whether
editing a group or not
if target is group
then stop editing group -- need to make sure to use a "background"
reference

This doesn't include the logic for using the option key to move/copy if the
control is from another card, or duplicate/move if from the same card.

Also important to use simple references that don't include the full
hierarchy of groups, since that will fail while editing a group.
___
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