[litwindow-users] Re: Access to adapters
Status: Alpha
Brought to you by:
hajokirchhoff
From: Hajo K. <mai...@ha...> - 2005-04-18 06:35:09
|
Sorry to flood your inbox... I found that NotifyChanged(g_data.mycollection); causes the invalidation I was seeking. Unless my view is too narrow, I have realized that the co-object to object link was entirely through the eventhandler. I tried creating a DeleteItem eventhandler in wxList_objects that removes the element from the collection. I am still a little uncomfortable with the idea that the framework should be responsible for deleting underlying data. Is this would you envision? I wanted the deletion to cause a general reevaluation of the rules. I'd prefer to have it called in the framework eventhandler after the underlying data is removed rather than immediately after deleting from the widget so as to avoid any race condition. I tried to call NotifyChanged from within the deleted items event handler, but calling it on m_items or m_items.get_container() or even GetCurrent() isn't enough to cause all g_data.mycollection rules to be reevaluated. Again, feel free to ignore this until you are feeling better. Best regards, |