Display Levels in Layout editor

D

Dougie T

Guest
Hi,

I know Ctrl-f and shift-f toggle between level0 view and full depth
view.

However, does anyone know if two bindkeys can be set up to
progressively set the display levels from 0, 1, 2, ....etc and back
down again?

It can be a bit tedious using the Display Options form if I'm doing a
lot of hierarchy traversing!!

thanks in advance.

Dougie.
 
Hi Dougie,

This is a quick attempt that defines a layout Bindkey Shift Mouse
scroll UP/Down to play around with the stop level.
You might tweak this skill at your convenience.

Cheers,
Riad.

; Skill starts here
procedure(RKchangeStopLevel(incr)
let((stopLevelOld stopLevelNew)
stopLevelOld=hiGetCurrentWindow()->stopLevel
stopLevelNew=stopLevelOld+incr
unless(stopLevelNew>0
stopLevelNew=0
)
unless(stopLevelNew<dbGetMaxHierDepth()
stopLevelNew=dbGetMaxHierDepth()
)
hiGetCurrentWindow()->stopLevel=stopLevelNew
printf("Stop View = %d\n" hiGetCurrentWindow()->stopLevel)
)
)

hiSetBindKeys( "Layout" list(
list("Shift<Btn4Down>" "RKchangeStopLevel(1)");
list("Shift<Btn5Down>" "RKchangeStopLevel(-1)");
))
; Skill ends here
 
On 27 Aug, 19:58, Riad KACED <riad.ka...@gmail.com> wrote:
Hi Dougie,

This is a quick attempt that defines a layout Bindkey Shift Mouse
scroll UP/Down to play around with the stop level.
You might tweak this skill at your convenience.

Cheers,
Riad.

Thanks Riad. I will get on this today.

regards,
Dougie.
 
On 28 Aug, 09:25, Dougie T <Dougie.Trick...@Calvatec.com> wrote:
On 27 Aug, 19:58, Riad KACED <riad.ka...@gmail.com> wrote:

Hi Dougie,

This is a quick attempt that defines a layout Bindkey Shift Mouse
scroll UP/Down to play around with the stop level.
You might tweak this skill at your convenience.

Cheers,
Riad.

Thanks Riad. I will get on this today.

regards,
Dougie.

That worked exactly as I had hoped.
Many thanks again Riad.

Dougie.
 

Welcome to EDABoard.com

Sponsor

Back
Top