« Audio Bitrate on QTMo… | Home | HASP SRM »

HUD Windows in REALbasic


You can use use Cocoa HUD Windows on Mac OS X 10.5 and newer like this:

And here is the code:
dim style as integer = NSPanelMBS.NSClosableWindowMask + NSPanelMBS.NSTitledWindowMask + NSPanelMBS.NSUtilityWindowMask + NSPanelMBS.NSHUDWindowMask + NSPanelMBS.NSResizableWindowMask

static n as NSPanelMBS = new NSPanelMBS(100,100,200,200, style, NSPanelMBS.NSWindowBackingLocationDefault, false)

n.Title = "Hello World"
n.Show
20 02 10 - 23:12
two comments

How to add content to this HUD window?
swort (Email) - 12 06 11 - 00:54

Well, check the NSViewMBS class and it’s subclasses. Also check examples there.
Christian Schmitz (URL) - 12 06 11 - 10:27


  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.