Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1745
WindowList tool items problem
posted

I need to set an internal value when a user clicks one of the 'Layout' items of the built-in WindowList tool.
(Cascade, Tile, etc.)

Another post said that no events were raised when these menus were clicked (at least it said none 'before' ... but I dont see any 'after' either)

I also don't see any events firing in the MDI Form itself when the layout changes. (I can't beleive there is no event - or even any way to determine the current layour that I can find.) 

The other post said that the solution was to override the MdiLayout() method since clicking these menus simply calls the form's MdiLayout method.

However that appears to be wrong.
I overrode the method and it is never called - the form still changes layout but my breakpoint never fires (and the variable never gets set.)

What could I have done wrong?
(The compiler recognizes my MdiLayout method as a valid Overide.)

Note that I am using NetAdvantage 2008 Vol 1 not 2009 Vol 1 so maybe you changed the logic since then?

Thanks

Mike

  • 1745
    Offline posted

    I just realized that I declared my method as Overloads rather than Overrides.

    I dont know why it accepted an Overloads function with the same signature as the base class method, but it did. (It simply doesn't use it.)

    LayoutMdi() is not an Override able method so that solution will not work.

    Any other way to catch this event, or detect the change in layout?

    Thanks

    Mike