Results 1 to 3 of 3

Thread: Destroying a non-modal panel

  1. #1
    Registered User
    Join Date
    Oct 2009
    Location
    Iceland
    Posts
    55

    Destroying a non-modal panel

    I reviewed code samples in sdk and noticed that they never call the "destroy" function for non-modal panel/xpanel dialogs. I guess in a real plugin I'll have a memory leak. Am I right? If so, what is the best way to control on_panel_closed event?

  2. #2
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,891
    Add code to create event handler:

    XpDESTROYNOTIFY( func )
    Set the callback that XPanels will call after the panel has been destroyed. The argument points to an LWXPanelDestroyNotifyFunc.

    and you should see that LW is destroying LWXPanelID by itself.

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Iceland
    Posts
    55
    Thank you, Sensei! I have now sorted it out!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •