Author Topic: Selective dispaly behavior seems incorrect  (Read 551 times)

JimmieC

  • Senior Community Member
  • Posts: 359
  • Hero Points: 13
Selective dispaly behavior seems incorrect
« on: November 09, 2016, 02:47:22 pm »
When first enabled, only single braces are shown inside a function. When and if statement is expanded, the braces from the if are expanded and so is the following if statement. But, not the if statement associated with the expanded braces. When collapsed, the if statement does not hide. However, the expanded singe brace is now collapsed as an open-close brace pair.

I have attached a pdf file with images of each step.

Maybe this is correct and I am misunderstanding how Selective Display is supposed to work. I am just starting to work with it.
Jim

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2207
  • Hero Points: 275
Re: Selective dispaly behavior seems incorrect
« Reply #1 on: November 09, 2016, 05:02:02 pm »
I can't reproduce the problem you are seeing with everything being collapsed immediately, at least not with the settings that you said you were using.

You would have better luck doing the multi-level outline using Statements instead of Braces, especially given your brace style.

Tim Kemp

  • Senior Community Member
  • Posts: 514
  • Hero Points: 83
Re: Selective dispaly behavior seems incorrect
« Reply #2 on: November 09, 2016, 06:55:46 pm »
I see the same results as Jim.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2207
  • Hero Points: 275
Re: Selective dispaly behavior seems incorrect
« Reply #3 on: November 09, 2016, 07:54:40 pm »
After changing the default for def_seldisp_minlevel, I was able to replicate the problem.  This will be fixed in the next hot fix.  In the meantime, you can check "Collapse items below level" and set the level as high as you want.

JimmieC

  • Senior Community Member
  • Posts: 359
  • Hero Points: 13
Re: Selective dispaly behavior seems incorrect
« Reply #4 on: November 09, 2016, 08:54:50 pm »
Hi Dennis,

 "Collapse items below level" may be useful to see more.

But, the bigger issue is that the "if" statement "above" the braces is not shown when the braces are expanded. Instead, the "if" statement below is shown. That "if" statement is not related to those braces.

So, what is needed is "Collapse\Expand above".

I am not at a PC with SE right now but I will try the Collapse Below also.

Jim

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2207
  • Hero Points: 275
Re: Selective dispaly behavior seems incorrect
« Reply #5 on: November 09, 2016, 08:58:32 pm »
As I recommended before, try creating the Multi-level outline with Statements instead of Braces.

JimmieC

  • Senior Community Member
  • Posts: 359
  • Hero Points: 13
Re: Selective dispaly behavior seems incorrect
« Reply #6 on: November 09, 2016, 09:06:14 pm »
10-4
I see what you were suggesting. That gets the correct "if" statement shown.