Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

DisableAquaPrefMenuMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Mac MBS MacOSX Plugin Yes No No Yes, macOS only No
Function: Disables the preference menu item.
Example:
DisableAquaPrefMenuMBS
Notes: In RB 4.5 use the PrefMenuItem instead of this function.

Some examples using this method:

Feedback, Comments & Corrections

EnableAquaPrefMenuMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Mac MBS MacOSX Plugin Yes No No Yes, macOS only No
Function: Enables the preference menu item.
Example:
EnableAquaPrefMenuMBS
Notes:
In RB 4.5 use the PrefMenuItem instead of this function.

Use some code like this in the Applications HandleEventHandler:

#if targetcarbon // Doesn't make sense else

// Check if it is the preferences call

if eventClass = "aevt" and eventID = "pref" then

prefdialog.showmodal ' do your stuff here

return true // We handled that Apple Event
end if

#endif

Some examples using this method:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacOSX Plugin.





Links
MBS Xojo PDF Plugins