B4J Question [SOLVED]In B4J FileChooser needs to be able to select a directory - MrKim    
Jun 1, 2024That's it. You can't select a directory unless it has a file in it....
link: Dim fc As FileChooser
fc.Initialize
fc.Title = "Select a Directory (Open any file...
link:
Public fchoose As FileChooser
Public dirchoose As DirectoryChooser
Do you mean...
link: Public fchoose As FileChooser
Public dirchoose As DirectoryChooser
Do you mean...
Wish FileChooser - ShowOpen - InitialFileName - LucaMs    
Jul 19, 2022FileChooser - ShowOpen. InitialFileName should be set in the input box.
131598...
link: From Javafx doc FileChooser:
setInitialFileName
public final void setInitialFileName(String...
B4J Question FileChooser in PreferencesDialog.bas [SOLVED] - Magma    
Mar 11, 2022Hi there...
I wanna create a custom Item for B4X PreferencesDialog... when user click at a label to get FileChooser showopen...
I am using that (thought will like b4xpages):
Dim whatfile As String
fc.Initialize
fc.Title="my title"
whatfile=fc.ShowOpen(B4XPages...
link: now works :)...
link: Make sure to call SetEventsListener and use:
whatfile=fc.ShowOpen(B4XPages.GetNativeParent(mCallback))
...
B4J Question FileChooser trouble under Windows7 - peacemaker    
Nov 11, 2020.DirApp
End If
Dim a As FileChooser
a.Initialize
a.InitialDirectory = SourceFileFolder...Hi, All
A remote user reported that the file pick dialog was stopped to work under Win7.
kvs.Initialize(File.DirData(appname), "kvs")
SourceFileFolder = kvs.Get...
link: Actually - no any other codes :).
And problem now is solved ! Issue was with the path that was wrong - the saved folder WAS DELETED ...
link: We need to see a bit more code. For instance Is that code within a try catch block?
If the source folder is invalid, an exception w...
B4J Question FileChooser Path without ~ - Mashiane    
Jan 21, 2018Hi there
How can I retrieve a file path from a filechooser without the ~?
I need the complete path?
Thanks...
link: On Mac?
Use GetCanonicalPath: https://www.b4x.com/android/forum/threads/file-dirapp-returns-short...
Java Question How to show fileChooser with webViewExtra - jkhazraji (first post)    
Jul 12, 2024
https://www.b4x.com/android/forum/threads/upload-files-with-webview.98623/
Thanks a lot that worked like a breeze....
link: https://www.b4x.com/android/forum/threads/upload-files-with-webview.98623/...
link: I noticed that openFileChooser function is included in webViewExtra library interface. How to...
B4A Question UltimateWebview2 and FileChooser Problem - kohlenbach    
Jul 4, 2024 ?
#SupportedOrientations: portrait
Private Sub UltimateWebView1_ShowFileChooser (FilePathCallback As ValueCallbackUri, Params As FileChooserParams)
WebChromeClient.ShowDefaultAppChooser(FilePathCallback,Params...Hi,
I have a b4xpages project with a ultimatewebview2 webview and the the orientation portrait.
This works fine. I use the WebChromeClient.ShowDefaultAppChooser.
If I open the camera app and turn the camera into landscape mode,
take the photo and return the app starts again.
Normally...
Italian [B4J] FileChooser - ShowSave - più opzioni per setExtensionFilter - Daestrum (first post)    
Mar 10, 2024   
(3 reactions)
' B4J
'fc = FileChooser
(Me).As(JavaObject).RunMethod("setFilters"...",Array(fc,"Headers C++","*.hpp"))
#if java
import javafx.stage.FileChooser;...
link: look at the last example I added...
link: ("javafx.stage.FileChooser.ExtensionFilter",Array("CVS",Array As String("*.csv...
link: :
Private fc As FileChooser
fc.Initialize
fc.setExtensionFilter("Data", Array...
B4J Question Filechooser how to detect Cancel click - ThRuST    
Jun 8, 2017Hi I wonder how to detect cancel click in filechooser? I tried this
Dim fc As FileChooser
fc.Initialize
Dim filename As String = fc.ShowOpen(MainForm)
If fc = fx.DialogResponse.CANCEL Then...
link: As FileChooser
fc.Initialize
Dim filename As String = fc.ShowOpen(MainForm)
If filename = ""...
link: Stole this code from Fabrice La
fc.InitialFileName = "excelfile.xls"
fc...
link: filechooser will return an empty string wheter it was cancelled or the user did not choose any file....
B4J Question Load Layout with FileChooser During Runtime - Mashiane    
Sep 13, 2016Hi
I'd like to be able to select a layout using filechooser and then load it to my screen, is this possible? I also want to loop through all its views, all of this during runtime.
Thanks...
link: You can only load layouts from the assets folder. However you can let the user choose from a list of layouts.
I also want to loop through all its views, all of this during runtime.
For Each n As Nod...
Page: 1  
2  
3  
4  
5  
6  
7