Skip to main content
Inspiring
October 24, 2016
Answered

CS6 TreeViewWidget refresh

  • October 24, 2016
  • 2 replies
  • 826 views

Hi,

I have a problem with the TreeViewWidget in CS6, but not in CC.

My plugin displays a queue (using a TreeViewWidget) in much the same way as the LinksUI plugin,

I actually studied the LinksUI plugin and based my own queue on it.

But my plugin works fine in ID CC, but in CS6 the queue does not refresh when items are added to it.

I refresh the queue, after I have added items to it, in the same way as I do for ID CC:

IControlView view;

view->HideView();

view->ShowView();

I know that this is somewhat of a hack, but hey it works, at least in CC.

But none of this stuff seems to work in CS6, I need to switch panels in order to refresh the panel that

contains the queue.

What can I do to refresh the queue (TreeViewWidget) in CS6 without having to switch panels first?

This is what I have tried so far:

// On steroids:

treeView->Disable();

treeView->Enable();

//

treeView->Invalidate();

treeView->Validate();

treeView->ForceRedraw(nil, kTrue);

treeView->Hide();

treeView->Show(kTrue);

treeView->ForceRedraw(nil, kTrue);

//

treeView->Disable();

treeView->Enable();

//

treeView->Invalidate();

treeView->Validate();

treeView->ForceRedraw(nil, kTrue);

treeView->Hide();

treeView->Show(kTrue);

treeView->ForceRedraw(nil, kTrue);

//

treeView->Disable();

treeView->Enable();

NOTE: I use the CS6 SDK for the CS6 plugin and the CC SDK for the CC plugin, configured as targets in the same Xcode project.

This topic has been closed for replies.
Correct answer Norio Kawamura

I am using ITreeViewMgr::ChangeRoot.

2 replies

Inspiring
November 7, 2016

UPDATE:

Now I am having a problem with InDesign CS6 on Windows:

When using ITreeViewMgr::ChangeRoot InDesign crashes...

Inspiring
November 7, 2016

I have no problem.

ITreeViewMgr::ChangeRoot is used in some sdk samples.

Inspiring
November 11, 2016

Works, but the crash(es) were caused by the fact that I used the wrong Visual Studio version for the ID CS6 SDK:

Setting up environment in Visual Studio 2015 for building plugins for InDesign CS6

Norio KawamuraCorrect answer
Inspiring
October 24, 2016

I am using ITreeViewMgr::ChangeRoot.