Custom iOS Like Msgbox for OSX/Windows

I developed a custom control that provides a MsgBox replacement and works for both OSX and Windows
It has a look similar to that of the AlertView in iOS
It is already set up for localization (it just needs the translated values added (anyone what to provide them? :slight_smile: )

If there is any interest, I will provide a pre-compiled version of a demo program (currently all in English)

If anyone would like to provide translations for other languages, here are the English words required to be translated

  • Abort
  • Cancel
  • Ignore
  • No
  • Ok
  • Retry
  • Yes

Here is simple call syntax

return_value=newMsgBox(text_of_title,text_of_msg,btn_combo_id)

btn_combo_id is from the first group box
return_value is what is in the second group box

German (Deutsch):

  • Abort = Abbrechen
  • Cancel = Abbrechen
  • Ignore = Ignorieren
  • No = Nein
  • Ok = Ok
  • Retry = Wiederholen
  • Yes = Ja

Sascha… Thanks… I’ve added German to the app

Now… how the heck can I test this?
If I change my “primary” language to German I have to reboot, and then I won’t be able to understand anything :slight_smile:

AH… I had to change the constants to be DYNAMIC also… sweet… it seems to work!!!

I now have it localized (per Google Translate) for

  • English
  • German
  • Dutch
  • French
  • Italian
  • Spanish
  • Swedish

[quote=218030:@Sascha S]German (Deutsch):

  • Abort = Abbrechen
  • Cancel = Abbrechen
  • Ignore = Ignorieren
  • No = Nein
  • Ok = Ok
  • Retry = Wiederholen
  • Yes = Ja[/quote]

Dutch:

  • Abort = Annuleren
  • Cancel = Annuleren
  • Ignore = Negeren
  • No = Nee
  • Ok = Ok
  • Retry = Opnieuw
  • Yes = Ja

Derek… Thanks

What is the difference between

Opnieuw

and

opnieuw proberen which is what Google provided

and Google also said

Abort=Afbreken

French :

  • Abort = Annuler
  • Cancel = Annuler
  • Ignore = Ignorer
  • No = Non
  • Ok = OK
  • Retry = Ressayer
  • Yes = Oui

BTW, I often noted how the Modern UI of “Metro”, UWP apps of Windows 8/10 are closer to iOS than the classic Windows control. Here is the recommended dialog box :

Your dialog box would probably work fairly well in a Modern UI Windows app.

Is this not looking awfully old fashion now ?

[quote=218037:@Dave S]Derek… Thanks

What is the difference between

Opnieuw

and

opnieuw proberen which is what Google provided

and Google also said

Abort=Afbreken[/quote]

Retry basicly is: Opnieuw Proberen (english: try again)
Opnieuw in english is (again)

so it’s a short hand version of it and should be enough.

Any interest in this?

It now is also a InputBox… Single Line of Text, with Ok/Cancel buttons.
returns either string typed by user, or “” if Cancel

[quote=218053:@Dave S]Any interest in this?

It now is also a InputBox… Single Line of Text, with Ok/Cancel buttons.
returns either string typed by user, or “” if Cancel[/quote]

Of course! :slight_smile:

to download a demo of this control, which should be localized for the languages listed above

www.rdS.com/iosmsgboxdemo.zip

this zip file contains compiled versions of the demo for both OSX and Windows (sorry Linux guys. I don’t have resources to test)

Just put in a reminder somewhere to rip localizations OUT of it if they dont want to be surprised their software is listed as running German etc

I have the same issue with macOSLib

You’ll find the same issue reported here several times when people try to submit to the Mac App Store and find their app is marked as localized into numerous languages when it isn’t really

Dave, will this work on Web too?

[quote=218055:@Dave S]to download a demo of this control, which should be localized for the languages listed above

www.rdS.com/iosmsgboxdemo.zip

this zip file contains compiled versions of the demo for both OSX and Windows (sorry Linux guys. I don’t have resources to test)[/quote]

Works just fine

Honestly…No Idea… there is nothing “special” (ie. declares etc).
Its all Window, Canvas,Labels etc.

[quote]If I change my “primary” language to German I have to reboot, and then I won’t be able to understand anything :slight_smile:

[/quote]

No, actually you don’t have to reboot.

Thanks, I had figured it out :slight_smile:

Italian translation!
Abort = Annulla
Cancel = Cancella
Ignore = Ignora
No = No
Ok = Ok
Retry = Riprova
Yes = S

@Dave S
In Dutch the translation for Abort isn’t Annuleren but Afbreken
Sorry Derk. :wink:

Polish (Polski):

Abort = Przerwij
Cancel = Anuluj
Ignore = Ignoruj
No = Nie
Ok = OK
Retry = Ponw
Yes = Tak

Note that you have a slight imperfection visible on your screenshot. The left button has one pixel left border visible:

…while the right button does not have the same right border:

I would suggest going with no left border (like the right button).