I need to add custom code to my application in case the user clicks on the "Close All Windows" tool in my MdiWindowList but the ToolClick event in my WinToolBar is not being triggered.
Any help will be appreciated.
Unfortunately, I don't see a good way to intervene before the windows are closed. You can submit a feature request for an event like this here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
I would also like to be able to trap clicking on the MDI Window List items, in particular, the Tile Horizontally and Tile Vertically menus. The existing functionality doesn't tile very well at all depending on the MDI window size. In fact, tile horizontally and tile vertically do the same thing on many occasions.
Is there any way I can trap and intervene to do my own window sizing, or am I going to have to bin this window list and write my own from scratch?
Thanks,Campbell
There are no events fired before the MdiWindowListTool items are clicked. However, these items just call off to the Form.LayoutMdi method, so you can easily implement your own items and perform some additional logic and then manually call off to LayoutMdi.
Hmm. The trouble is, I was wanting the window list that this menu gives me. To maintain that would be a bit of a pain. Can you think of any other way I could override the behaviour of the tile menus - or even, just show the window list without the other options. Or would I have to re-write the whole MDI window menu?
Thanks.
Ah, I hadn't seen the DisplayXXCommand options on the tool before. I can just suppress the Tile commands and add my own. Sorted. :)