![]() The iosXojoDraw class supplements Xojo graphic capabilities. XojoApp has Text based functions that mimic those available for String in Desktop apps. The String type is replaced by Text in iOS. Now whenever you want to call a message box with a response it’s very simple, you’ll just make sure your view is the iOSView subclass, and then use: self. A flexible MsgBox function make it easy to present messages or multi-button dialogs with a simple function call. RaiseEvent ActionSheetResult(sender.myTag, buttonIndex)Įvent ActionSheetResult(sheetTag as text, buttonIndex as integer) Sub ButtonResult(sender as alertSheet, buttonIndex as integer, cancel as Boolean) If buttons=nil or UBound(buttons)=-1 thenĪddHandler xx.ButtonAction, AddressOf ButtonResult ![]() Sub ShowMessageBox(boxTag as text, theMessage as text, buttons() as text, cancelButtonName as text=“Cancel”) In your iOSView subclass, the method you’ll call when you want to show the message box: Please note that I assed the MyTag as text variable to the alert sheet class from the example. ![]() Makes it very easy to handle this type of problem for multiple views. Using the Alert Sheet from the example, I set up my project with a subclass of iOSView that has a ShowMessageBox method and an ActionSheetResult Event Definition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |