Hi Benoit,

 

 As Daniel pointed out, the -1 becomes obligatory for an empty tree with no
root.

 

  So your test will work by simply changing:

 

self.insertbranch0 = v .. "\\"

 

  To:

 

self['insertbranch-1'] = v .. "\\"

 

Best, 

Scuri

 

 

From: Benoit Germain [mailto:[email protected]] 
Sent: segunda-feira, 2 de julho de 2012 05:03
To: IUP discussion list
Subject: [Iup-users] [IUP 3.6 Windows 7] problem with IupTree dynamic
filling

 

Hello,

I have drop-replaced IUP 3.5 libraries with IUP 3.6. With this change, a
custom dialog making use of an IupTree no longer works as before.

Run the attached script to see the problem: with IUP 3.5, the IupTree on the
right displays 4 folders. Each time you click on a folder, 2 subfolders are
added.
With IUP 3.6, the iupTree remains empty.

IUP 3.6 Changes regarding IupTrees concern only the ability to use -1 as
ADDLEAFid and ADDBRANCHid indexes.
Is it something wrong I was doing before and worked by chance, or is it
simply some change that I missed ?


Regards,

-- 
Benoit.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to