• "OnTabChange" for DPropertySheet?
    1 replies, posted
Does anyone know if it's possible for a "OnTabChange" like hook for DPropertySheet? One of my tabs is a bit too expensive for me to call as soon as the window opens, so I've put a button that loads it in the tab itself. However, the button is a little annoying and I'd rather have it load as soon as you change to the tab. Is that possible? Thanks in advance. [editline]8th March 2012[/editline] Ignore this, did it by just using a Think command, as that only runs when the panel is visible. [highlight](User was banned for this post ("Wrong section" - Gran PC))[/highlight]
Hacky but it does what needs to be done. [lua] local old=PropertySheet.SetActiveTab function PropertySheet:SetActiveTab(active) --do things return old(active) end [/lua]
Sorry, you need to Log In to post a reply to this thread.