Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MDI app: how to manage children's data ?

15 views
Skip to first unread message

pbru...@yahoo.com

unread,
Feb 26, 2013, 11:20:54 AM2/26/13
to
Hi all, I'm creating a MDI application with a toolbar (just like MS Word). The toolbar contains controls (let's say eg a combobox indicating the font for the current child window). What is the best way to store the data in the toolbar when, for a given child, the focus is lost, and to set the stored data back in the toolbar when the same child is gaining focus again ?
Hope I'm clear, TIA!
Phil

David Lowndes

unread,
Feb 26, 2013, 11:49:12 AM2/26/13
to
> What is the best way to store the data in the toolbar when, for a given child, the focus is lost, and to set the stored data back in the toolbar when the same child is gaining focus again ?

Phil,

When the view changes (look at handling OnMDIActivate), just update
the toolbar controls with the view document data.

Dave

pbru...@yahoo.com

unread,
Feb 26, 2013, 1:29:17 PM2/26/13
to
Thanks Dave! OnMDIActivate is what I was looking for.
0 new messages