Jump to content


TuniTreeView export to XML

uniTreeView export to XML

  • Please log in to reply
1 reply to this topic

#1 Freeman35


    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 348 posts

Posted 06 July 2017 - 01:53 PM


I need to export Treeview to xml, and I wrote this unit. Saveto file and read fromfile.

Just can not set TuniTreeNode.Level, 'cos that property is readonly. So this mean file hasto be ordered, if you add/change manually xml file.

I wanna use TreeView like a menu, sometime modified and there is no export import way. And I don't like add item(s) in code.


1.1 new: added "use_menu_id" compiler directive. This is Add "mnu_id" Attribute in xml. This is for on TUniTreeView.OnClick (How to use detail in pas header)


this codes are howto use:

// Save
 With TuniTreeViewToXML.Create(UniTreeView1) do

//  load
  UniTreeView1.Items.Clear;//  !!!! important, you have to clear all item first
  With TXMLTouniTreeView.Create do
    XMLTouniTreeView(UniTreeView1, 'test.xml');

Attached Files

  • 0

#2 Agus Widodo

Agus Widodo


  • uniGUI Subscriber
  • Pip
  • 3 posts

Posted 12 January 2018 - 01:35 PM

great job...
thanks a lot. it really help me. i'd like to use for user right management 

  • 0

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users