Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/ATS/ATS FontNotification
Required plugins for this example: MBS MacCF Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/ATS/ATS FontNotification
This example is the version from Sun, 17th Mar 2012.
Project "ATS FontNotification.rbp"
Class Window1 Inherits Window
Control List Inherits ListBox
ControlInstance List Inherits ListBox
End Control
EventHandler Sub Open() // Options used with ATSFontNotificationSubscribe. Any of the // options that follow may be used together in order to alter the // default behavior of ATS notifications. // Default behavior of ATSFontNotificationSubscribe. const kATSFontNotifyOptionDefault = 0 // Normally applications will only receive ATS notifications while in // the foreground. If suspended, the notification will be delivered // when then application comes to the foreground. This is the // default. You should set this option if you are a server or tool // that performs font management functions and require immediate // notification when something changes. const kATSFontNotifyOptionReceiveWhileSuspended = 1 n=new MyATSFontNotificationMBS n.Create kATSFontNotifyOptionReceiveWhileSuspended End EventHandler
Property Protected n As MyATSFontNotificationMBS
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
Class MyATSFontNotificationMBS Inherits ATSFontNotificationMBS
EventHandler Sub Changed() Window1.List.AddRow "Changed "+str(ticks) End EventHandler
End Class
End Project

See also:

Feedback, Comments & Corrections

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

MBS FileMaker tutorial videos