Peter,
Try this on each sheet:
If you are using tab, put this on dw of each tabpage:
m_xyz m_menu_instance
Window lw_ActiveSheet
lw_ActiveSheet = w_test_frame.GetActiveSheet()
m_menu_instance = lw_ActiveSheet.MenuID
To enable/disable:
m_menu_instance.m_file.m_printpreview.Disabled = FALSE
If you are using window sheet without tabpage, put this on either window
sheet (inherited sheet)
m_upwms_sheet m_menu_instance
m_menu_instance = MenuID
To enabble
m_menu_instance.m_file.m_printpreview.Enabled=FALSE
Hope this would help.
Unit Parts Comapny
Senior Software Engineer
Lynn Nguyen
> -----Original Message-----
> From: Peter Brawley [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, September 09, 1999 11:02 PM
> To: Rendra Yap; PFC SIG
> Subject: Re: PFCSIG Arrange disabled or enabled Menu Item
>
> Use a different instance in each sheet.
>
> PB
>
> ----------
>
> Rendra Yap wrote:
>
> > ASAP
> > I've got a big problem.
> > I've an application with menu that I inherit from m_frame.
> > I inherit that m_frame to m_xyz, and I used that menu (m_xyz) to many
> > windows sheet. And I disabled and enabled menu from that windows.
> > If I worked with only one window that application ran well, but if I
> opened
> > that 2 windows with that menu (m_xyz), the menu become uncontrolable.
> And If
> > I close one of that window, the instance of that menu (m_xyz) was
> deleted,
> > and an error was occured.
> > Do you know to solve this problem ?
> >
> > 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]
> [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]