Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud

> Le 5 janv. 2020 à 17:48, Christian Schmitz  a 
> écrit:
> 
>> Indeed. My suggestion remains: the documentation doesn't mention MenuMBS as 
>> being removed nor which classe(s) replace(s) it.
> 
> I'll change the html file on the website.

Thank you.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Christian Schmitz



> Indeed. My suggestion remains: the documentation doesn't mention MenuMBS as 
> being removed nor which classe(s) replace(s) it.

I'll change the html file on the website.


Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud

> Le 5 janv. 2020 à 17:00, Christian Schmitz  a 
> écrit:
> 
>> Great, works nicely. Thank you!
>> BTW: perhaps you should show MenuMBS as deprecated in the online 
>> documentation? 
> 
> It's not deprecated, but removed.

Indeed. My suggestion remains: the documentation doesn't mention MenuMBS as 
being removed nor which classe(s) replace(s) it.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Christian Schmitz


> Great, works nicely. Thank you!
> BTW: perhaps you should show MenuMBS as deprecated in the online 
> documentation? 

It's not deprecated, but removed.


Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud

> Le 5 janv. 2020 à 12:11, Christian Schmitz  a 
> écrit:
> 
> MenuMBS was Carbon only.
> You need to switch to Cocoa classes, e.g.
> NSMenuMBS, NSMenuItemMBS and NSPopUpButtonMBS.
> 
> e.g. see
> https://www.mbsplugins.de/archive/2014-12-19/Apply_fonts_to_font_PopupMenu 
> 
Great, works nicely. Thank you!
BTW: perhaps you should show MenuMBS as deprecated in the online documentation? 
I misleadingly didn't see it anywhere.
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


Re: [MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Christian Schmitz


> Am 05.01.2020 um 11:31 schrieb Marnaud :
> 
> Hello,
> 
> I thought I already asked that, but I can't find any proof (maybe I dreamt of 
> it?)…
> 
> So, MenuMBS no longer compiles, which, currently, breaks my code.


MenuMBS was Carbon only.
You need to switch to Cocoa classes, e.g.
NSMenuMBS, NSMenuItemMBS and NSPopUpButtonMBS.

e.g. see
https://www.mbsplugins.de/archive/2014-12-19/Apply_fonts_to_font_PopupMenu

Sincerely
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/



___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info


[MBS] MenuMBS no longer there; what's the replacement?

2020-01-05 Thread Marnaud
Hello,

I thought I already asked that, but I can't find any proof (maybe I dreamt of 
it?)…

So, MenuMBS no longer compiles, which, currently, breaks my code.
Here's the “current” code:

dim b As Boolean
dim i As Integer
dim m As MenuMBS
dim s As String

m=new MenuMBS
m.Handle=MenuHandle

i=PMPropertiesHandles.IndexOf(MenuHandle) 'Check if the passed handle is in my 
array; this array contains the menu(s) handle I want to monitor.
if i>-1 then
  for i=1 to m.Count
s=m.Text(i)
b=s<>CstStrConcerningFileTrack
if not b then
  m.DisableAllMenuItems
  m.Enabled(i)=False
  m.Bold(i)=True
  m.Underline(i)=True
end if
  next
end if

In short, this code disables a particular menu item inside a popup menu.
What's the proper way to do the same without using MenuMBS?
___
mbsplugins@monkeybreadsoftware.info mailing list
%(list_address)s
https://ml-cgn08.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info