LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree Control - Design Mode - Indent Level

Hi!

 

In edit mode tree control has indent / outdent level right - click menu. I need this functionality. Indenting and outdenting items. I've implemented, but the in/out Denting does not works well, it the tag has children.

 

 

I am wondering, is it possible to call indent/outdent level right-click menu in run mode?

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 1 of 6
(3,519 Views)

Interesting challenge! The key involves creating your own custom run-time menu items and defining the actions of those items. Consider the following code, attached as an image and LV2010 VI:

 

23252iD5778F64613C653E

0 Kudos
Message 2 of 6
(3,497 Views)

oh...man.. sorry, but I'm using LV.09

Could you send it to me in version .9

Thanks!!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 3 of 6
(3,489 Views)

When I saw your soulition I have a problem with that. In the design mode in/outdenting a parent item, all the children will be updated, To even in your source.

 

I'm looking for a solution for the whole update process. I've started to implement it yesteday, but not has finished yet.

Using depth first search algorithm to get the view all containing elemens. Basically,The real problem is the time and order of using indent level property incrementing/decrementing' couse

 | CurrentNode.Indent level -  GetPreviousNode.Indent level | > 1 - Indent| outdent is not allowed

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 4 of 6
(3,486 Views)

Successed! 🙂

 

Soon I'm going to publish my solution!

 

Thanx again!

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 5 of 6
(3,477 Views)

Here is my code!

 

Take a look at...

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 Kudos
Message 6 of 6
(3,469 Views)