It appears the MessageDialog has neither a Hide nor a Close function. And I also seem not to be able to call the ActionButton’s Push method as it’s not available, either.
I am running a Timer in the background that likes to be able close the dialog.
Does someone know a hack / trick how to close the dialog, maybe even with declares?
Maybe you could create a window as your dialog with your timer in that window and show it using something like
I don’t know how safe this is, and it only works for dlg.ShowModal, but calling abortModal on the app seems to do it
[code] declare function NSClassFromString lib “Cocoa” (ClsName As CFStringRef) As Ptr
declare function sharedApp lib “Cocoa” selector “sharedApplication” (cls As Ptr) As Ptr
declare sub abortModal lib “Cocoa” selector “abortModal” (id As Ptr)
dim appID As Ptr = sharedApp(NSClassFromString(“NSApplication”))