Message Dialog Xplat issues

I’ve developed an app on Windows and am now testing on OSX. This app has the following code

[code] Dim dlgq As New MessageDialog
dlgq.Title = “DBObjects”
dlgq.Explanation = “Create Listbox subclass?”
dlgq.Icon = MessageDialog.GraphicQuestion
dlgq.ActionButton.Caption = “Yes”
dlgq.CancelButton.Caption = “No”
dlgq.CancelButton.Visible = True

Dim btn As MessageDialogButton
btn = dlgq.ShowModal[/code]

Pretty basic I thought, but on OSX there is no title or icon. Is this expected?

In OS X there is no Title in the MessageDialog and the icon shown, when using GraphicQuestion, is the application icon.

See: Xojo Documentation - MessageDialog

[quote=157371:@Wayne Golding]I’ve developed an app on Windows and am now testing on OSX. This app has the following code

[code] Dim dlgq As New MessageDialog
dlgq.Title = “DBObjects”
dlgq.Explanation = “Create Listbox subclass?”
dlgq.Icon = MessageDialog.GraphicQuestion
dlgq.ActionButton.Caption = “Yes”
dlgq.CancelButton.Caption = “No”
dlgq.CancelButton.Visible = True

Dim btn As MessageDialogButton
btn = dlgq.ShowModal[/code]

Pretty basic I thought, but on OSX there is no title or icon. Is this expected?[/quote]
Depending on what the dialog shows, you might prefer to use:

dlgq.Icon = MessageDialog.GraphicCaution

Thanks for your assistance. I should have rechecked the docs. I don’t see my apps icon just blank space, but I guess on OSX I’ll need to use the only specified icon - caution - or build my own dialog.

Thanks again guys!

I tried you code above on OSX 10.9.5 and got the exact icon the LR refers to… not sure why you get a blank

Also not sure why OSX is so limited to the displayable icons, when all 4 icons are part of the OSX system .

Somewhere around I have a custom MsgBox the shows the right icons, I’ll dig it up if you’re interested.

@Wayne Golding - do you have an icon defined for your app?

Dave - it would be great if you can find it easily.

Greg - yes I do have an icon in all sizes defined.

it has been a while (2012)… but check this out and see if a) it still works and b) if it is what you want

http://www.rdS.com/mymsgbox.dmg.zip

and looks like I even wrote some docs for it :smiley:

http://www.rdS.com/mymsgbox.html

Hi Dave

Looks like what I’m after. How much for the source?

I think this has something to do with the workflow on OS X. Forgive me if this sounds wrong, I’ve tried to word it politely, but on OS X, there simply isn’t a Yes / No dialog like windows. Apple encourage you to build dialogs like this in a different manor.

(dialog is showing default app icon, because I wrote this into a project without an app icon). Is more consistent with the Apple HIG. The altered code is below.

[code] Dim dlgq As New MessageDialog
dlgq.Title = “DBObjects”
dlgq.Message = “Would you like to create a Listbox subclass?”
dlgq.explanation = “A shiny new Listbox subclass, not only brightens your teeth, but cures your cigarette cravings also.”
dlgq.ActionButton.Caption = “Create”
dlgq.CancelButton.Visible = True

Dim btn As MessageDialogButton = dlgq.ShowModal[/code]

The nice thing about HIG is what the “G” stands for …

Conformity? :wink:

Reviewer Goofy dogma ?