B4J Question FileChooser in PreferencesDialog.bas [SOLVED] - Erel (first post) Mar 13, 2022 (2 reactions) Make sure to call SetEventsListener and use:
whatfile=fc.ShowOpen(B4XPages.GetNativeParent(mCallback)) B4J Question [SOLVED]In B4J FileChooser needs to be able to select a directory - jkhazraji (first post) Jun 02, 2024 (1 reaction) Dim fc As FileChooser
fc.Initialize
fc.Title = "Select a Directory (Open any file within the directory)"
Dim selectedFile As String
selectedFile = fc.ShowOpen(MainForm)
If selectedFile <> "" Then
Dim directoryPath As String
directoryPath = File.GetFileParent(s B4J Question B4J OpenFile Dialog... - Daestrum (first post) Jul 27, 2024 (1 reaction) Dim fchoose As FileChooser
fchoose.Initialize
fchoose.InitialDirectory = "."
fchoose.InitialFileName = "*.java"
Dim fname As String = fchoose.ShowOpen(MainForm)
If fname = "" then
'no file chosen
Else
'it contains selected file name and path.
End If Wish FileChooser - ShowOpen - InitialFileName - stevel05 (first post) Jul 19, 2022 From Javafx doc FileChooser:
It appears that this is a platform level issue. B4J Question File Explorer in B4j - stevel05 (first post) Sep 03, 2020 (3 reactions) Try FileChooser or DirectoryChooser for directories. B4J Question File Picker - DonManfred (first post) Oct 23, 2020 (2 reactions) Use the FileChooser
Dim FC As FileChooser
FC.Initialize
FC.InitialDirectory = "initialdir"
FC.Title = "Select the XML file"
FC.SetExtensionFilter("XML", Array As String("*.xml"))
Dim selected As String = FC.ShowOpen(MainForm) B4J Question Using FileChooser in B4XPage (But Not MainPage) - Erel (first post) Oct 06, 2020 (2 reactions) You should use B4XPages.GetNativeParent(Me) to get the form. B4J Question Filechooser from a list of files not a volume - Erel (first post) Jun 28, 2019 You don't have any control over the files listed in FileChooser. You will need to implement your own dialog. B4J Question FileChooser - InitialDirectory - Pictures - Roycefer (first post) Aug 19, 2015 (2 reactions) You can get username with
Dim username as String = GetSystemProperty("user.name", "default") B4J Question Try to make a safe dialoig - stevel05 (first post) Jul 27, 2018 (1 reaction) FileDialog is an android library. In B4j you can use FileChooser, it is an internal library. Page: 1 2 3 4 5 6 7 Powered by ColBERT |