B4A Library Dialogs library

Status
Not open for further replies.
This library contains several modal, that is blocking, dialogs by which the user can enter data. Presently they are an InputDialog for numbers and text, a TimeDialog for times and and a DateDialog for dates.

Note that modal dialogs can close unexpectedly and not return to your code if the Activity needs to close, most likely because the user rotated the device. There is a brief discussion of this in the overall library help in the xml. This can also occur with the Basic4android modal dialogs InputList, InputMultiList, Msgbox and Msgbox2 whose modal mechanism is used by the dialogs in this library.

Edit : - Version 1.1 posted with minor bug fix. See post #6 for details.

Edit : - Version 1.2 posted with Color dialogs. See post #16 for details.

Edit : - Version 1.3 posted with bug fix. See post #19 for details.

Edit : - Version 1.4 posted with a Number dialog. See post #20 for details.

Edit : - Version 1.5 posted with some enhancements. See post #28 for details.

Edit : - Version 1.6 posted with a File Dialog. See post #30 for details.

Edit : - Version 1.7 posted with a minor UI change. See post #33 for details.

Edit : - Version 1.8 posted with a Custom dialog. See post #37 for details.

Edit : - Version 1.9 posted with a bug fix. See post #42 for details.

Edit : - Version 2.0 posted with a bug fix. See post #48 for details.

Edit : - Version 2.1 posted with a second Custom dialog. See post #68 for details.

Edit : - Version 2.2 posted. See post #75 for details.

Edit : - Version 2.3 posted. See post #90 for details.

Edit : - Version 2.4 posted. See post #135 for details.

Edit : - Version 2.5 posted. See post #148 for details.

Edit : - Version 2.6 posted. See post #155 for details.

Edit : - Version 2.7 posted. See post #168 for details.

Edit : - Version 2.8 posted. See post #206 for details.

Edit :- Version 2.91 posted by Mildev. See post #317 for details. His version 2.91 is based on my unpublished v2.9 which set the text box in FileDialog to SingleLine mode.

Edit : - Version 2.92 posted. See post #341 for details.

Edit (Erel): Version 3.00 posted. Developers using B4A v6.80+ should use this version.

V4.01 is released with several improvements: https://www.b4x.com/android/forum/t...-dialogs-and-async-methods.80204/#post-507930

B4A version | Dialogs library version
------------------------------------
7.0+ 4+
6.8 3.00
<6.8 2.92
 

Attachments

  • Dialogs2.92.zip
    59.4 KB · Views: 13,007
  • Dialogs3.00.zip
    48.9 KB · Views: 2,959
  • Dialogs4.01.zip
    72.2 KB · Views: 9,606
Last edited by a moderator:

alimanam3386

Active Member
Licensed User
Longtime User
Hi

how can we change the Title typeface ( also buttons typeface ) in this lib ? I used CSBuilder but nothing changed. thanks
 

Marek Brezina

Member
Licensed User
Hello,
would you be able to do something with ColorDialog when you use it in Landscape mode? In this case, it does not appear as a whole, it is not possible to set the color. See picture. Can elements shrink somewhat? Or do the slider dial items?
Thank you,
Marek
 

Attachments

  • ColorDialog_landscape.jpg
    ColorDialog_landscape.jpg
    33.1 KB · Views: 419

JTmartins

Active Member
Licensed User
Longtime User
I have several problems with this lib.

No way to have more than 4 digits displayed in number dialog.

Wrong display in Date dialog and time dialog in landscape, as shown.

Does anyone have the same problems ?

I'm using the demo files, for the attached shots
 

Attachments

  • date.png
    date.png
    14.5 KB · Views: 499
  • timedialog.png
    timedialog.png
    10 KB · Views: 506

jimmyF

Active Member
Licensed User
Longtime User
** Activity (splash) Pause, UserClosed = true **
** Activity (main) Resume **
Activity_Resume
No Intent
3
Error occurred on line: 2202 (Main)
java.lang.RuntimeException: Path ''does not exist
at anywheresoftware.b4a.agraham.dialogs.InputDialog$FileDialog.loadFileList(InputDialog.java:2030)
at anywheresoftware.b4a.agraham.dialogs.InputDialog$FileDialog.createFileDialog(InputDialog.java:2128)
at anywheresoftware.b4a.agraham.dialogs.InputDialog$FileDialog.Show(InputDialog.java:2054)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:755)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:345)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5646)
at android.view.View$PerformClick.run(View.java:22554)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6157)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:926)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:788)
Using Android 7.1.1
Not an issue with older versions.
B4X:
Dim fd As FileDialog
fd.FileFilter=("*.*")
fd.TextColor = Colors.Black
                 
Line 2202 --> fd.Show("Open Text File","Yes","No","",Null)
If fd.Response = DialogResponse.POSITIVE Then
 

jimmyF

Active Member
Licensed User
Longtime User
Very good question. :confused:
I just figured it out as you were typing. Great minds think alike! ;)
I had never set it.
This works:
B4X:
fd.FilePath= File.DirRootExternal

Funny, though, that it was never an issue on previous phones.
 

cengolo

Member
Licensed User
Longtime User
is it possible to change the colors of the time picker dialog (or the dialogs in general?)
 
Status
Not open for further replies.
Top