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,001
  • Dialogs3.00.zip
    48.9 KB · Views: 2,954
  • Dialogs4.01.zip
    72.2 KB · Views: 9,577
Last edited by a moderator:

metrick

Active Member
Licensed User
Longtime User
I was unable to find reference red (-65536) and gray (-3355444) return value from colorpicker to android colors chart. What is the rgb/hex value for the red and gray value from colorpicker? Thanks in advance.
 
D

Deleted member 103

Guest
Hello agraham,

is it possible to change the Number dialog so that the decimal point in a larger display (see my photo below).
If it is not possible then I have to create it myself with a custom dialog.
 

Attachments

  • dialog_number_old.jpg
    dialog_number_old.jpg
    31.5 KB · Views: 301
  • dialog_number_new.jpg
    dialog_number_new.jpg
    28.6 KB · Views: 298

Gorazdspajzer

Member
Licensed User
Longtime User
Hi Agraham,

Really useful library!
I'm using it in my project, but I have one "big" problem. My application UI is white or light grey and when I open TimeDialog or DateDialog they are dark. Is it possible that I change background of TimeDialog and DateDialog?

Regards,
Gorazd
 

HARRY

Active Member
Licensed User
Longtime User
Problem with FileDialog.

In my own program as well as in the DialogsDemo setting the Filepath to File.DirRootExternal doesn't work as I expect.

Setting it to DirRootExternal gives the directories and files of the phone, not of the SD card.

When DirInternal is set I think that the correct directories and files are shown.

The command File.ExternalReadable returns true.

Is this a problem of my phone or a bug or am I doing something wrong?

Harry
 

a_carignan

Member
Licensed User
Longtime User
Oops, yesterday, I had not seen the files in the directory to unzip dialogs2.92:rolleyes:. Grieve for the inconvenience:(. Thank you:p!
 

qsrtech

Active Member
Licensed User
Longtime User
Hi, great library but I'm not sure why the keyboard doesn't pop up on all devices. i.e. my tablets pop up but my note 2 doesn't.
 

davepamn

Active Member
Licensed User
Longtime User
B4A suggestion: create a import dialog for copying the dialog.jar and dialog.xml file into the b4a
 

sanduro

Member
Licensed User
Longtime User
Hallo agraham,

I don't know if this is the right place to write my wish, but I would find very practical to have a extended version of Number Dialog.

Input and output should be float.

Another parameters would be nice as well

Minimum - Minimum what control allows you to set as number
Maximum - Maximum what control allows you to set as number
Step - Minimum step what control will allow you to change, so the incerement decrement arrow by corresponding digit should go by value in Step no by 1 as is now

e.g.

Minimum = 6
Maximum = 24
Step = 0.5

This should allow you to input anything between 6 and 24 by step 0,5 , so last digit should increment by 5, so 0 and 5 are only allowed values
e.g. 6,5 12 12,5 23,5 are correct values.

Thank you for your time

San
 

Softflow Systems

Member
Licensed User
Longtime User
Thank for this Library Agraham
Is there a way in which the dialog can be used as controls.
Viz. In a single panel I want to input date and time and some numbers without opening the dialog box.
 

MaxApps

Active Member
Licensed User
Longtime User
Hi

Is there a way to make the edittext accept a specific pattern (e.g. *.bmp), to make sure the name is correct for saving a file.

Kind regards
Jakob
 

Oswald

Member
Licensed User
Longtime User
Hello,
I am showing a dialog on the screen which is created by Dialogs (v2.92) lib.
There are two EditText's and two buttons (OK and Cancel) in the dialog.
Everything works fine and I do not have any problem.

But even though the focus is on the first EditText, the sw keyboard is hidden.
to make it visible I need to touch, one of the EditText's.

Is there any way to make sw keyboard visible whenever dialog comes visible?

thanks in advance
Bravox
 
Last edited:

Informatix

Expert
Licensed User
Longtime User
Hello,
I am showing a dialog on the screen which is created by Dialogs (v2.92) lib.
There are two EditText's and two buttons (OK and Cancel) in the dialog.
Everything works fine and I do not have any problem.

But even though the focus is on the first EditText, the sw keyboard is hidden.
to make it visible I need to touch, one of the EditText's.

Is there any way to make sw keyboard visible whenever dialog comes visible?

thanks in advance
Bravox
My BetterDialogs library fixes this issue.
 

chrjak

Active Member
Licensed User
Longtime User
seems that the library is buggy. The datedialog needs an update... i get stupid things back...
In android 4.3 on the s4 the calendar is over the main thing and in android 2.xx there are many bugs...
Regards
 
Last edited:
Status
Not open for further replies.
Top