Greetings!

I need to handle the MenuPopulate event of the CarbonApplicationEventsMBS class 
in order to deactivate one row of a PopupMenu control. I use this kind of code:
  dim i As Integer
  dim m As MenuMBS
  
  m=new MenuMBS
  m.Handle=MenuHandle
  
  if MenuHandle=PMCmdHandle then 'PMCmdHandle is a custom property of this class
    for i=1 to m.Count
      m.Enabled(i)=m.Text(i)<>CstStrConcerningFileTrack
    next
  end if

and, in Carbon, I could define PMCmdHandle like this:
CAE1.PMCmdHandle=MyPopupMenu.MenuMBS.Handle

However, that last call produces an exception in Cocoa (only valid for Carbon 
32 bits). This breaks the entire purpose of the MenuPopulate event, I guess. 
Which workaround can be done?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to