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. Erel

    Erel Administrator Staff Member Licensed User

    v2.96 was uploaded to the first post. It adds back the ShowCalendar property. Note that it only affects the DateDialog interface when using Android 2 themes.
     
    alimanam3386 likes this.
  2. divinglog

    divinglog Member Licensed User

    Thank you very much, Erel! :)
     
  3. Robert Valentino

    Robert Valentino Well-Known Member Licensed User

    upgraded to 2.96 and it says
    fd.KeyboardPopUp = False

    "unknown memeber keyboardpopup"
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Remove that line. It will not popup by default.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    v3.00 uploaded to the first post. New FileDialog.TextColor field.
     
    peacemaker likes this.
  6. fransvlaarhoven

    fransvlaarhoven Active Member Licensed User

    Hello,

    there seems to be a problem with library dialogs version 3.00 and B4A version 6.80

    As instructed, i replaced library dialogs version 2.92 with library dialogs version 3.00 when upgrading to B4A version 6.80.

    However, it seems to be that the method "ShowCalendar" is no longer supported.

    Dim dialog As DateDialog
    dialog.ShowCalendar= True

    Please advise on how to solve the problem
     
  7. rscheel

    rscheel Well-Known Member Licensed User

    You have to delete .ShowCalendar and re-select.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    There should be a ShowCalendar field in the latest version.
     
  9. fransvlaarhoven

    fransvlaarhoven Active Member Licensed User

    I've downloaded dialogs version 3.00 yesterday, no ShowCalender.....
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Try to delete the existing Dialogs library (make sure that there is no such library in the internal libraries folder) and download it again.
     
  11. fransvlaarhoven

    fransvlaarhoven Active Member Licensed User

    I just tried Your suggestion but unfortunately, same result.
     
  12. DonManfred

    DonManfred Expert Licensed User

    Code:
    Sub Activity_Create(FirstTime As Boolean)
        
    'Do not forget to load the layout file created with the visual designer. For example:
        'Activity.LoadLayout("Layout1")
      
        dia.ShowCalender = 
    True
      
    End Sub

    Sub Activity_Resume
        dia.Show(
    "Test","Title","OK","Cancel","Negative",Null)
      
    End Sub
    works for me
     
    Last edited: Apr 13, 2017
  13. SandroB4A

    SandroB4A Member Licensed User

    Hello,
    I use Filedialog to let the user saving a text file somewhere on his phone.
    The app propose a default filename trough .ChosenName property but once the user changes the directory the filename disappears from the upper EditText.
    Is there a way to avoid that? or to add a separate .DefaultName property?

    Tks
     
  14. Erel

    Erel Administrator Staff Member Licensed User

  15. SandroB4A

    SandroB4A Member Licensed User

    Ok, I'll try it

    Thanks
     
  16. miguelconde

    miguelconde Member Licensed User

    Hello .

    I have an error using the dialog library (InputDialog )
    I saw the other comment about it but the solution dont work for me.

    B4A version: 6.50
    Parsing code. (1.81s)
    Compiling code. (0.89s)
    Compiling layouts code. (0.01s)
    Organizing libraries. (0.00s)
    Generating R file. (0.11s)
    Compiling generated Java code. Error
    javac 1.8.0_131
    src\com\sfanetcloud\sfanetmovil\ordenes.java:373: error: package anywheresoftware.b4a.agraham.dialogs.InputDialog does not exist
    public anywheresoftware.b4a.agraham.dialogs.InputDialog.DateDialog _entradafecha = null;
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error

    I have b4a 6.5 on a ubuntu 16.04 and VirtualBox VM with Windows 7, the
    same setting like my old windows 7 PC. This app have many years and
    i did not change. Just try to compiled on the VM with the same setting.


    Thank you.
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    You should use Dialogs v2.92 with B4A v6.50.
     
  18. senat56

    senat56 Member Licensed User

    v3.00
    Error
    (Line: 104) If open.Response=DialogResponse.POSITIVE Then
    java.lang.NullPointerException

    Code:
    Sub Button1_Click
        
    Dim open As FileDialog
         
    If open.Show("Select file","Ok","Cancel","",Null)=DialogResponse.POSITIVE Then
         
    End If
    End Sub
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the full error message from the logs?
     
  20. senat56

    senat56 Member Licensed User

    First click - no showing , two click - closing and current log

    LogCat connected to: B4A-Bridge: Sony C6503
    --------- beginning of main
    Installing file.
    PackageAdded: package:FileInDir.com
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = false **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = true **
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = false **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = true **
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = true **
    Installing file.
    PackageAdded: package:FileInDir.com
    ** Activity (main) Create, isFirst = true **
    ** Activity (main) Resume **
    ** Activity (main) Pause, UserClosed = false **
    ** Activity (main) Resume **
    An error occurred:
    (Line: 104) If open.Show("Select file","Ok","Cancel","",Null
    java.lang.NullPointerException
     
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