B4A Library Dialogs library

Status
Not open for further replies.

fransvlaarhoven

Active Member
Licensed User
Longtime 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
 

rscheel

Well-Known Member
Licensed User
Longtime User

You have to delete .ShowCalendar and re-select.
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
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:

SandroB4A

Member
Licensed User
Longtime 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
 

miguelconde

Member
Licensed User
Longtime 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.
 

senat56

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

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

senat56

Member
Licensed User
Longtime 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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…