decai
Topic Author
Posts: 30
Joined: 06 Jul 2016, 18:19

Alternate of Visual::DisconnectFromView

05 Jul 2020, 15:55

Hi, all

We use Visual::DisconnectFromView when we destroy a view. After upgraded, the DisconnectFromView become private, what's the alternate way to do so?
We use native c++ SDK of NoesisGUI.

Thanks.

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 1881
Joined: 22 Dec 2011, 19:20

Re: Alternate of Visual::DisconnectFromView

06 Jul 2020, 18:08

Why did you need to manually call DisconnectFromView? How were you using it?
The View already calls DisconnectFromView on the tree root when it gets destroyed, and all visuals in the tree are called to virtual function OnDisconnectFromView().
 
decai
Topic Author
Posts: 30
Joined: 06 Jul 2016, 18:19

Re: Alternate of Visual::DisconnectFromView

07 Jul 2020, 14:15

Then how to destroy a view? Or just there no reference the view will be destroyed?
 
User avatar
jsantos
Site Admin
Posts: 2865
Joined: 20 Jan 2012, 17:18
Contact:

Re: Alternate of Visual::DisconnectFromView

07 Jul 2020, 14:23

Yes, Views are automatically destroyed when ref counter reach zero, as the rest of classes in Noesis.

Who is online

Users browsing this forum: No registered users and 3 guests