You need to access the menu that is associated with each menu, through the
.menuid property of your window.

In any window event:

m_master lm_menu
lm_menu = this.menuid

lm_menu.m_save.enabled = TRUE

You should not use code like
m_master.m_save.enabled = TRUE, 
because this accesses the global variable m_master.

regards, Jim

Jim Crockett

> ----------
> From:         Rendra Yap[SMTP:[EMAIL PROTECTED]]
> Sent:         Monday, November 22, 1999 12:40 AM
> To:   PBPFC Mailing List (E-mail); PFC mailing list (E-mail)
> Subject:      PFCSIG Using single menu at several windows
> 
> 
> I have single menu (called m_master inherit from m_frame) and I want to
> attach all window master with m_master.
> At the m_master, I disable one item called m_save.
> And in every window master has a datawindow, at editchanged event I
> enabled
> that m_save.
> And then I open several window master, after that I see at the toolbar
> (from
> that menu) from each window, and the disabled menu is correct. If I edited
> the datawindow, the m_save was enabled, but when I changed to other window
> master, the m_save enabled too.
> Is that a PFC bug or not ?
> 
> How to manage that enabled menu for many windows ?
> Do you think that I must create a menu for each window ?
> 
> Regards,
> Rendra Yap
> Bussiness Development System
> PT. Surabaya Agung Industri Pulp & Kertas
> E-mail : [EMAIL PROTECTED]
> ICQ #  37557798
> 
> 
> 
> > [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS,
> ADDRESS
> > A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help
> pfcsig
> > SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]
> 
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to