peacemaker Expert Licensed User Longtime User Nov 6, 2019 #1 HI, All Is it possible to make the international MsgBox without any text ? Only using Fontawesome symbols and punctuation marks. If i try to use like B4X: Msgbox2Async(Chr(0xF057) & " ?", Chr(0xF03E), Chr(0xF057) & " !", Chr(0xF05E), "", Null, False) all Fontawesome symbols are unreadable, but MESSAGE and TITLE should be OK as CharSequence... Spoiler: upd: Msgbox2Async(" ?", "☠:", " → !", "⤺", "", Null, False) Is it clear MsgBox ? Last edited: Nov 6, 2019
HI, All Is it possible to make the international MsgBox without any text ? Only using Fontawesome symbols and punctuation marks. If i try to use like B4X: Msgbox2Async(Chr(0xF057) & " ?", Chr(0xF03E), Chr(0xF057) & " !", Chr(0xF05E), "", Null, False) all Fontawesome symbols are unreadable, but MESSAGE and TITLE should be OK as CharSequence... Spoiler: upd: Msgbox2Async(" ?", "☠:", " → !", "⤺", "", Null, False) Is it clear MsgBox ?
stevel05 Expert Licensed User Longtime User Nov 6, 2019 #2 I don't think it's possible to change the Font for any of the msgbox objects, I suggest you look at B4xDialogs (Part of XUIViews) in which you can define pretty much everything and even load a layout for your dialog. Upvote 0
I don't think it's possible to change the Font for any of the msgbox objects, I suggest you look at B4xDialogs (Part of XUIViews) in which you can define pretty much everything and even load a layout for your dialog.
stevel05 Expert Licensed User Longtime User Nov 6, 2019 #3 As an example, Select XUI and XUI Views Libraries, Add Global variable XUI = XUI and use this code: B4X: Dim D As B4XDialog D.Initialize(Activity) D.TitleBarFont = XUI.CreateFontAwesome(20) D.Title = Chr(0xF03E) D.ButtonsFont = XUI.CreateFontAwesome(20) Wait For (D.Show(Chr(0xF057) & " ?", Chr(0xF057) & " !","",Chr(0xF05E))) Complete (Result As Int) Log(Result) Upvote 0
As an example, Select XUI and XUI Views Libraries, Add Global variable XUI = XUI and use this code: B4X: Dim D As B4XDialog D.Initialize(Activity) D.TitleBarFont = XUI.CreateFontAwesome(20) D.Title = Chr(0xF03E) D.ButtonsFont = XUI.CreateFontAwesome(20) Wait For (D.Show(Chr(0xF057) & " ?", Chr(0xF057) & " !","",Chr(0xF05E))) Complete (Result As Int) Log(Result)
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2019 #4 The code above is just a small example, however in real usage it is better to reuse the dialog and only initialize it once in Activity_Create. Upvote 0
The code above is just a small example, however in real usage it is better to reuse the dialog and only initialize it once in Activity_Create.