You could probably write a method into your base class menu that looks
through the control lists looking for a name or number.

For example

mf_enable_item(string as_item[],boolean ab_enable)
and
mf_enable_item(integer ai_item[],boolean ab_enable)

You would want to do an array so you can look through submenus

You example may look like this

ls_item[1] = "m_edit"
ls_item[1] = "m_delete1"
or alternately
ls_item[1] = "&Edit"
ls_item[1] = "&Delete"

m_master_private.mf_enable_item(ls_item,True)

in the method you could look through the base control list looking for an
item named the first value or you could also look at the text. (you may even
want to strip the "&" symbol)

Once you find the item.  Look in it's control array for the next item in the
as_item array.

Once you find that you have the handle to the object you wish to
enable/disable.

Simply set the enabled attribute to ab_enable

Obviously you could do this with visible as well.

> -----Original Message-----
> From: Rendra Yap [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 15, 1999 9:05 AM
> To:   PBPFC Mailing List (E-mail); PFC mailing list (E-mail); PB Mailing
> List processor (E-mail)
> Subject:      PFCSIG URGENT : Synonym of dot notation at enabling menu
> 
> 
> I want to know the synonym of dot notation at enabling menu, because I
> want
> to make my program more powerfull and flexible.
> I give you an example,
> 
>       m_master_private.m_edit.m_delete1.enabled               = True
> 
> can I make this script to other notation (not dot notation), like describe
> at datawindow ?
> 
> thanx
> 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