B4A Library Dialogs library

Discussion in 'Additional libraries, classes and official updates' started by agraham, Dec 7, 2010.

Thread Status:
Not open for further replies.
  1. deantangNYP

    deantangNYP Active Member Licensed User

    Do you have any suggestion?
    Thanks
     
  2. Informatix

    Informatix Expert Licensed User

    The File Explorer class? It's pure B4A code, so you can add/change any feature that you want (and it has already more features than this file dialog).
     
  3. warwound

    warwound Expert Licensed User

    Can you test the attached Dialogs library update?
    Tested here on a Moto G and it seems to work fine.

    Martin.
     

    Attached Files:

  4. ducphu

    ducphu Active Member Licensed User

    Hi all,
    Does this library support alpha channel in a color picker, e.g user can change alpha value.
     
  5. Mashiane

    Mashiane Expert Licensed 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?

    Code:
    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
     
  6. goron

    goron Member Licensed 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
     
  7. ivanomonti

    ivanomonti Well-Known Member Licensed User

  8. ivanomonti

    ivanomonti Well-Known Member Licensed 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 :)
     
  9. delozoya

    delozoya Member Licensed User

    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

    Code:
    eIME.SetCustomFilter(anEdit, anEdit.INPUT_TYPE_TEXT, "qwertyuiopasdfghjklñzxcvbnm_-")
    Thanks
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    You can use the IME library to set this filter. Though it will not work with the input dialog. However you can create a custom non-modal dialog with a panel instead.
     
  11. warwound

    warwound Expert Licensed 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.
     

    Attached Files:

  12. MbedAndroid

    MbedAndroid Active Member Licensed 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)
     
  13. warwound

    warwound Expert Licensed User

    Look at the documentation: http://www.b4x.com/android/help/dialogs.html#filedialog

    See the FileDialog has a KeyboardPopUp property 'Gets or sets whether the keyboard only pops up when the EditText is clicked'.
     
  14. MbedAndroid

    MbedAndroid Active Member Licensed User

    thanks, missed it...
     
  15. clooney48

    clooney48 Active Member Licensed User

    Why do I see only 3 and a half digits instead of 5 with the GET NUMBER dialog??
     
  16. NeoTechni

    NeoTechni Well-Known Member Licensed User

    It keeps closing the activity on me. How do I get this behavior to stop?
     
  17. fziebell

    fziebell Member Licensed 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
     
  18. Erel

    Erel Administrator Staff Member Licensed User

    1. Delete dialogs.jar and dialogs.xml from the internal libraries folder.
    2. Create a new folder for libraries (not inside Program Files).
    3. Set it as the additional libraries folder (Tools - Configure Paths).
    4. Copy the two files to this folder.
     
  19. fziebell

    fziebell Member Licensed 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
     
  20. fziebell

    fziebell Member Licensed 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
     
Thread Status:
Not open for further replies.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice