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

jkurant

Member
Licensed User
Longtime User
How do you find a message by post #?

someone wrote, "Version 2.7 posted. See post #168 for details."

How do you find a message on this forum by post #?
 

jkurant

Member
Licensed User
Longtime User
Documentation for the dialog library?

Is there documentation somewhere for the dialog library? I'm new to these forums and am having trouble finding things.
 

Scantech

Well-Known Member
Licensed User
Longtime User
Hello Agraham,

Any chance moving the Color Dialog 3 sliders to the right side next to the color label when in landscape mode or make adjustment to fit screen. If it is not too much of a problem for you. Thanks.
 

splatt

Active Member
Licensed User
Longtime User
Show the Day of the Week?

Is it possible to display the day of the week for the currently selected date on the DateDialog?
 

jscoulter

Member
Licensed User
Longtime User
Woudl I be right in thinking.....

Hi.
Would I be right in thinking that with a custom dialog, if I pass a reference to a panel to it that was populated with some controls, say some check boxes, that because its an activity item, I could read the values on the panel to see what was selected after the dialog was closed??

Thanks, Jeremy
 

aedwall

Active Member
Licensed User
Longtime User
A user reports a problem with the Dialogs library (with the YEAR part on the date control):

I have a Motorola Droid Razr. When clicking on the '-', it stops & sticks at 1970. I can type in an earlier date and press Ok, but it saves as 1970.

This library works fine on the emulator. Does anyone have experience with this alleged problem?

Thank you.
 

School Boy Error

Member
Licensed User
Longtime User
I can't get this to run, I've copied the libraries (.xml, .jar) to my Libraries folder like it says in the readme.txt

The error is

Unknown type: colordialog
Are you missing a library reference.
 

thedesolatesoul

Expert
Licensed User
Longtime User
I can't get this to run, I've copied the libraries (.xml, .jar) to my Libraries folder like it says in the readme.txt

The error is

Unknown type: colordialog
Are you missing a library reference.

Is the library 'checked' in the libraries tab on the right of the IDE?
 

robramalv

Member
Licensed User
Longtime User
Show Keyboard

Hi.
I'm new in this forum and I only work with Basic4ppc for one week but all works very well. It's a great job.

Ok, I have a question or problem. I'm using dialog library 2.7 and when I shell show method I need that keyboard appear inmediatly. Now the keyboard appear only when I push on the edittext box. If there is only one edittextbox, I need that keyboard apperar automaticaly. Is it possible?????

Best Regards,
 

splatt

Active Member
Licensed User
Longtime User
Further to my previous request about displaying the Day Of the Week in the dialog, I have seen a few examples where the Dialog Title has been used for this purpose, so that when any element of the date is changed, the title changes to reflect the day and the date.

This would be a big help if it could be changed, as at present, I have to refer to a standard calender to know which day I want to select.
 

fabio borges

Member
Licensed User
Longtime User
Compile error

Hi everybory,

I've this problem when i try compile applicantion:

Somebody can help me? Sorry for my english.

Compiling code. 0.21
Generating R file. 0.00
Compiling generated Java code. 3.49
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.add(ArrayList.java:351)
at com.android.dx.ssa.SCCP.addUsersToWorklist(SCCP.java:117)
at com.android.dx.ssa.SCCP.simulatePhi(SCCP.java:195)
at com.android.dx.ssa.SCCP.simulateBlock(SCCP.java:206)
at com.android.dx.ssa.SCCP.run(SCCP.java:554)
at com.android.dx.ssa.SCCP.process(SCCP.java:92)
at com.android.dx.ssa.Optimizer.runSsaFormSteps(Optimizer.java:160)
at com.android.dx.ssa.Optimizer.optimizeMinimizeRegisters(Optimizer.java:145)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:107)
at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:73)
at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:273)
at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:134)
at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:87)
at com.android.dx.command.dexer.Main.processClass(Main.java:483)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:455)
at com.android.dx.command.dexer.Main.access$400(Main.java:67)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:394)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:135)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:191)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:123)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
at com.android.dx.command.dexer.Main.processOne(Main.java:418)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:329)
at com.android.dx.command.dexer.Main.run(Main.java:206)
Standard dexer.
 
Status
Not open for further replies.
Top