Hi, I have built an application that allows a user to create on the fly, toolwindows within the main DockSite - each of these toolwindows also has a docksite within it.
Now I also allow the user to select the toolwindow and create child toolwindows within the selected parent toolwindow.
So, in this example, the user could create 2 top level toolwindows (A & B) and within A, create 2 children toolwindows (A-1 & A-2) and within B, 3 child toolwindows (B-1 & B-2 & B-3).
I am using the WindowActivatedEvent at the main Window level to detect on creation and selection of the toolwindows, and I run some code on the trigger to set headers & other things required by the app depending on the toolwindow selected.
My problem is that I would like this code to be run every time a toolwindow is selected, whether it is already activated or not. What I am finding is that if I select toolwindow A-1, the windowactivated event is triggered (and therefore my code is run). If I select B-2, again this is triggered OK. Problem comes when I then select A-1 again, I suppose because it is already the active window in the parent A toolwindow.
I can't seem to find an event for selection (based on the fact that it is already selected). Appreciate any advice on this.
Bret
I
Within each of these child toolwindows I also create a docksite, I also allow the user to create nested
Now I also allow the user to select the toolwindow and create child toolwindows within the selected parent toolwindow.
So, in this example, the user could create 2 top level toolwindows (A & B) and within A, create 2 children toolwindows (A-1 & A-2) and within B, 3 child toolwindows (B-1 & B-2 & B-3).
I am using the WindowActivatedEvent at the main Window level to detect on creation and selection of the toolwindows, and I run some code on the trigger to set headers & other things required by the app depending on the toolwindow selected.
My problem is that I would like this code to be run every time a toolwindow is selected, whether it is already activated or not. What I am finding is that if I select toolwindow A-1, the windowactivated event is triggered (and therefore my code is run). If I select B-2, again this is triggered OK. Problem comes when I then select A-1 again, I suppose because it is already the active window in the parent A toolwindow.
I can't seem to find an event for selection (based on the fact that it is already selected). Appreciate any advice on this.
Bret
I
Within each of these child toolwindows I also create a docksite, I also allow the user to create nested