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

Mahares

Expert
Licensed User
Longtime User
Hi MLDev:
Here is atatched a simple working project that illustrates what I asked you about. When you click on the edittext box, the keyboard displays first. If you click on it a second time, then the date picker displays. Of course I can replace the edittext with labels, but I will have to do that sevral places.
Thank you for taking a look.
 

Attachments

  • DateDialogTestMaharesMLDev.zip
    7.3 KB · Views: 337

Mahares

Expert
Licensed User
Longtime User
@TDS: I am aware of your statements. However, since MLDev is tweaking Andrews' dialog library, I thought it might be something he can tackle. Let us see what he can do. I attached a small project at his request in my previous post for him to take a look and see if he can eliminate the double click on an edittext. Methods are fluid and changing all the time. Aren't they.
Thanks
 

markoates

New Member
Licensed User
Longtime User
Date Dialog Issue on Small Screen

On Android 4.x, there is an error with DateDialog.
How can I prevent that the month grid view is shown?
This hides the display of year, month and day.
My manifest.xml includes:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>

I am having the same issue as quoted above on a Samsung S3. Works fine on a 7inch and 10 inch but seems to be trying to cram all the data in a small space on the smaller screen. Is there a way that I can force the use of the older date format without reducing the whole app to an older version... Perhaps use an older version of the Library? Is there anywhere I can download one of the older dialog libraries to give it a try?
 

ostau

Member
Licensed User
Longtime User
Where Can I Download This Lib?

I searched for a long while but I couldn´t fand any download link?

Kind regards, Oskar
 

fox96

Member
Licensed User
Longtime User
Hi, sorry for my english.

For problem in datapicker calendar.

You can add this feature?

setCalendarViewShown(boolean shown)
Sets whether the CalendarView is shown.

DataPicker
 
Last edited:

trencasostres

Member
Licensed User
Longtime User
selecting text in an inputdialog

Hello,
It is possible to select part o entire text in the inputdialog?
If yes. how?
thanks.

trencasostres.
 

Maxory

Member
Licensed User
Longtime User

Attachments

  • DatePickerExtended_with_demo.zip
    385 KB · Views: 316
Last edited:

bjf

Member
Licensed User
Longtime User
Great addition with the updated library.
One question though.

I print the choosen time from my timepicker to a button like:

B4X:
TimePicked.Text = td.Hour & ":" & td.Minute

This works great if i for examle choose a time like "10:15, but if i chosse say
"01:01" the text displays like "1:1", is this by design or am i doing something wrong?
 

murdoch1976

Member
Licensed User
Longtime User
How can I download?

Noob alert, so apologies for this. I've just bought the full license for B4A after enjoying the trial for a while. I have downloaded several extra libraries, but can't seem to find the link to download this one. Can someone point me at it please?

Good find! I am astonished that clearFocus() does anything at all on a view that is not displayed. I suppose it's just yet another bit of Android crapiness.

Version 2.8 now posted incorporates this in TimeDialogand DateDialog.
 

NFOBoy

Active Member
Licensed User
Longtime User
Request

As I have learned that I cannot incorporate the CustomDialog and get events from Views. I am at an impasse for making a Modal ColorDialog that works in both Landscape and Portrait on phones.

Is it possible in the next iteration, to have the ColorDialog (there may be others) re-formatted to fit when on a landscape orientation for smaller screens?

I did a non-modal dialog that re-adjusts based on orientation, so that all three primary colors are always visible and choose-able, but really would like the modal part!

Thanks,

Ross
 
Status
Not open for further replies.
Top