View Full Version : Event
Fenloh
May 19th, 2010, 14:57
Hi @all,
is there an event, that is fired whenever a window is opened (activated)? just like the onInit, only every time the windowclass is called upon?
I need a field in the background that keeps track of the active window, because, depending on the active (sub)window, a skillroll can mean different things. I though i go via the button. Since the skillroll is not made from the particular subwindow I do not know if it is active or not.
Fenloh
Zeus
May 19th, 2010, 20:11
You can use OnSubwindowInstantiated() which if present, is called if the window instance is contained in a subwindow. OnSubwindowInstantiated() will be called after onInit is called.
Or you can use OnInstanceCreated() which if present, is executed when the window instance contained in the subwindow has been created.
DrZ.
Fenloh
May 19th, 2010, 20:52
Hi DrZeuss,
thanks for the help, but unfortunatly both events are only fired once. If the Subwindow is created it is fired but if you switch back and forth through the tabcontrol calling on the subwindows, then the events are not fired again, unless you close the Charsheet and open it again.
You see, i have a subwindow within a subwindow. example:
I There is a Subwindow Combat. On this subwindow is a Windowlist named Skills. Also there is a visible subwindow with a windowlist named "weapons"
If a Skillroll is initiated and the Subwindow "weapons" is opend the Skillroll shall be initiated as Weaponroll. (I have several subwindows with different lists)
Anyway. I just figured, that instead of keeping track of the opened subwindow i can place the Skilllist within that subwindow. I would need to place it on each subwindow, but my problem will be solved...
Well sometimes it helps trying to explain the problem in order to find a solution.
Thanks,
Fenloh
Zeus
May 19th, 2010, 21:17
OK I see. Well it seems you have found a solution anyway so glad it helped.
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.