B4A Library Dialogs library

Status
Not open for further replies.

ducphu

Active Member
Licensed User
Longtime User
Hi all,
Does this library support alpha channel in a color picker, e.g user can change alpha value.
 

Mashiane

Expert
Licensed User
Longtime User
I am using the date dialog and setting a date on it when a textbox control is receiving the focus. I have set the input type to none. Whilst the day and year always returns the correct ones, the month is always stuck in January when the date dialog displays. I set a datetime.format to yyyy-mm-dd before I set the date. Can someone help please on how to solve this issue?

B4X:
Sub txtDateOfDeath_FocusChanged (HasFocus As Boolean)
    If HasFocus = True Then
        Dim ret As Int
        Dd.ShowCalendar = False
        DateTime.DateFormat = "yyyy-mm-dd"
        ' if there is a date already
        If txtDateOfDeath.Text.Length > 0 Then
            Dim iDate As Long
            iDate = DateTime.DateParse(txtDateOfDeath.Text)
            Dd.Year = DateTime.GetYear(iDate)
            Dd.Month = DateTime.GetMonth(iDate)
            Dd.DayOfMonth = DateTime.GetDayOfMonth(iDate)
        Else
            Dd.Year = DateTime.GetYear(DateTime.Now)
            Dd.Month = DateTime.GetMonth(DateTime.Now)
            Dd.DayOfMonth = DateTime.GetDayOfMonth(DateTime.Now)
        End If
        ret = Dd.Show("Select the Date of Death", "Date of Death", "Ok", "Cancel", "", Bmp)
        Select Case ret
        Case -1
            'ok
            txtDateOfDeath.text = Dd.Year & "-" & NumberFormat(Dd.month,2,0) & "-" & NumberFormat(Dd.DayOfMonth,2,0)
        Case -3
            ' cancel
        End Select
    End If
End Sub
 

goron

Member
Licensed User
Longtime User
Dialogs & Images

I would like to show the selected image ( .png .jpg - etc ) as "ICON"
as can be seen below :
Dim ICON As Bitmap
Icon.Initialize(File.DirAssets, "android48.png")
Dim Action As Int = FileDialog1.Show("Select a file:", "OK", "Cancel", "", ICON)

When the textbox shows its name (file name), and before (OK, Cancel) button is pressed.
Replacing the ICON with the updated image, or create another view for it.

TIA,
Gideon
 

ivanomonti

Expert
Licensed User
Longtime User

can you teach me how to import a native Android B4X on, I need to realize TimePickerExtended, would you give me a help Thak 100000000000
 

delozoya

Member
Licensed User
Longtime User
Here you are
Hello agraham. Thaks for this library. But i have a question.

I need that the edittext for inputdialog not contain space. How I can do?

In the java code I custom with something like this

B4X:
eIME.SetCustomFilter(anEdit, anEdit.INPUT_TYPE_TEXT, "qwertyuiopasdfghjklñzxcvbnm_-")

Thanks
 

warwound

Expert
Licensed User
Longtime User

Can you test the attached update?
I've added a new AcceptedCharacters property to the InputDialog.
The default value for AcceptedCharacters is Null - no input filtering is performed.
Set a value and then give it a test and post with your results.

InputDialog
Properties:
  • AcceptedCharacters As String
    Get or Set the AcceptedCharacters used as a custom filter by the EditText
    Set a value of Null to disable any custom filter.
    Default value is Null.

Martin.
 

Attachments

  • Dialogs-v2.95.zip
    50.7 KB · Views: 357

MbedAndroid

Well-Known Member
Licensed User
Longtime User
in the file dialog a input keyboard pups up. How to surpress this keyboard? I just want the user picks a file from the list. Now the keyboard covers the presented filelist (on a 7 inch tablet)
 

warwound

Expert
Licensed User
Longtime User

NeoTechni

Well-Known Member
Licensed User
Longtime User
It keeps closing the activity on me. How do I get this behavior to stop?
 

fziebell

Member
Licensed User
Longtime User
Hi.
I'm new in that forum an test the demo version of b4a(5.02(1)).
I have the same Problem with the library dialogs(Download version 2.92).
The Message is:

javac 1.7.0_09
src\b4a\example\main.java:374: error: package anywheresoftware.b4a.agraham.dialogs does not exist
anywheresoftware.b4a.agraham.dialogs.InputDialog _id = null;

Everything your wrote above, i have done.
Delete dialog.jar/XML, restart b4a, lib is not in libmanager, download lib new, copy files in b4a lib directory.

The same Problem.

There ist no extra Dir in my b4a Installation and no in C:\Users\admin\AppData\Local....

I don't know, what i can do.

can you help me?

Thanks
Fred
 

fziebell

Member
Licensed User
Longtime User
...Everything your wrote above, i have done...

Yes, Thank You.
I have delete the two files in the internal libraries folder,
put the new downloaded Files in user\admin\b4a\Libs.
I have set the path to the additional libraries folder.

If i start b4a i can see and load dialogs lib.
when I load a test application that uses dialog commands , the Dialog lib loaded automatically.
OK.
But if i compile the application the result is the error message #457.

Greetings
Fred
 

fziebell

Member
Licensed User
Longtime User
Many other tests work very well ... without the dialog lib.

It may be that is the trial.version the problem ?

Today , after work , I'll try a new installation on a different computer .

Greetings
Fred
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…