Skip to main content
May 8, 2014
Answered

How to auto-refresh the panel in panel tree view plugin .....

  • May 8, 2014
  • 3 replies
  • 654 views

Hi Team,

I am modifying the paneltreeview plugin.... Currently I need an auto-refresh of the panel .... please suggest how to do the same... Thanks in advance....

This topic has been closed for replies.
Correct answer maddy1907

Not sure what your definition of "auto-refresh" is. In case you know the event that will trigger the refresh, and you want to redraw the tree, simply call

ITreeViewMgr::ClearTree()

ITreeViewMgr::ChangeRoot(kTrue)

PnlTrvIdleTask::refresh() clearly demonstrates it.

HTH

3 replies

maddy1907Correct answer
Inspiring
May 12, 2014

Not sure what your definition of "auto-refresh" is. In case you know the event that will trigger the refresh, and you want to redraw the tree, simply call

ITreeViewMgr::ClearTree()

ITreeViewMgr::ChangeRoot(kTrue)

PnlTrvIdleTask::refresh() clearly demonstrates it.

HTH

Inspiring
May 9, 2014

i'm not sure if this is what you're looking for, but if you look into the file PnlTrvIdleTask.cpp and find the line "const static int kPnlTrvExecInterval = 30*1000;" and change this to a lower number, then it should update more often than just once every 30 seconds. does that help you at all?

Inspiring
May 9, 2014

How did you manage to build the PanelTreeView plugin? When I try to build it using Xcode i get a "Semantic Issue" in WideString.h on lines 191 and 430, saying "Implicit conversion loses integer precision: 'long' to 'int32' (aka 'int')". Am I doing something wrong?

May 9, 2014

Hi berndkampl,

I have just built using xcode and no issues arises as of now... Sorry dude I am not the right guy to clear your doubt....