B4A Library [B4X] [XUI] B4XDialog - Custom dialogs - Erel    Dec 19, 2021   (21 reactions)   tags: B4X XUI B4X Dialog Custom, xui, myapp, Dialogs Edit: B4XDialogs is part of XUI Views library. Use that instead: XUI Views - Cross platform views and dialogs B4XDialog class helps with creating cross platform custom dialogs. The dialog is made... As B4XView = xui.CreatePanel("") p.SetLayoutAnimated(0, 0, 0, 300dip, 170dip) 'set... most cases it requires a bit more work as you also want to handle keyboard changes: 'B4A Sub..., NewHeight) End Sub 'B4i Sub Page1_KeyboardStateChanged (Height As Float) If Dialog.Visible Then... B4A Code Snippet [B4X] Share your B4XDialog + templates theming code - Erel    Jun 1, 2021   (7 reactions) Have you created a nice dialog based on B4XDialog? Post it here. If you have any question then start a new thread.... B4J Code Snippet B4XDialog - Add keyboard handling - Erel    Apr 7, 2019   (8 reactions) This code allows the user to close the dialog with 'escape' or one of the following keys: Y, N or C. It depends on agraham's jReflection library. Sub AddKeyPressedListener Dim r As Reflector r.Target = MainForm.RootPane r.AddEventHandler("keypressed", "javafx.scene.input.KeyEvent.KEY_PRESSED") End Sub Sub KeyPressed_Event (e As Event) If Dialog.Visibl... B4A Code Snippet [B4X] [B4XPages] Nested B4XDialogs - Erel    Jun 16, 2020   (9 reactions) B4A project is attached. By default, when a B4XDialog is shown it will close other visible dialogs. This is prevented with this line: Dim rs As Object = MainDialog.ShowCustom(CustomPanel, "Ok", "", "") MainDialog.Base.Parent.Tag = "" 'this will prevent...) The other interesting thing is how to handle the back key: Sub B4XPage_CloseRequest As ResumableSub For Each d As B4XDialog In Array(SecondDialog, MainDialog) 'order is important. Should start... B4A Code Snippet [B4X] B4XDialog - show with animation - Erel    Feb 24, 2020   (14 reactions) Slides the dialog from one of the sides. Sub AnimateDialog (dlg As B4XDialog, FromEdge As String) Dim base As B4XView = dlg.Base Dim top As Int = base.Top Dim left As Int = base.Left Select FromEdge.ToLowerCase Case "bottom" base.Top = base.Parent.Height Case "top" base.Top = -base.Height Case "left"... Usage example: Sub Globals Private dialog As B4XDialog Private xui As XUI End Sub Sub... B4A Question B4XDialog elevation - LucaMs    Mar 27, 2022 "Having had" to study the source code of the XUI Views a bit, I noticed that, in the B4A version, the elevation of the Background panel of the B4XDialog has been set to 4dip. This is obviously a problem, if there was a View with higher elevation in the underlying layout (to avoid writing nonsense, I have experienced it, although I was practically certain). How to create this type of View, dialogs, that are certainly displayed above any other? What is the maximum elevation value... B4A Code Snippet Light Theme for B4XDialogs - arf programas    Mar 5, 2021   (9 reactions) SetLightThemeDialog(dialog As B4XDialog) dialog.BackgroundColor = Colors.White dialog.ButtonsColor... Then you can use the others codes whenever you need: Sub SetLightThemeList(list As B4XListTemplate... SetLightThemeInput(input As B4XInputTemplate) Dim TextColor As Int = 0xFF5B5B5B input..., Colors.Red) End Sub 109140 Sub SetLightThemeSearch(search As B4XSearchTemplate) Dim... Sub SetLightThemeDate(datetemplate As B4XDateTemplate) Dim TextColor As Int = 0xFF5B5B5B... B4A Question B4XDialog and menus - LucaMs    Aug 22, 2021 We can consider this a B4XDialog bug, because it must prevent a menu from being selected (the base panel should cover all).... B4A Question b4xdialog order buttons - scsjc    Jan 20, 2019 Is possible change the order from buttons? and aling the buttons :"top-left" "center" "top-right" customdialog screen?... Bug? B4J Version 8.30 - B4XDialog "java.lang.NumberFormatException: empty String" - moster67    May 25, 2020   (1 reaction) I get a "java.lang.NumberFormatException" error with B4J Version 8.30. Same code works fine with B4J 8.10 When using the following code in a button click event, I get the following exception: "java.lang.NumberFormatException: empty String" Sub Button1_Click dialog.Title = "Insert some text" Dim input As B4XInputTemplate input.Initialize input.lblTitle.Text = "Testing" input.RegexPattern = ".+" 'require at least... Page: 1   2   3   4   5   6   7   |