B4J Question Filechooser and windows 11

Lildinti

Member
Licensed User
Longtime User
Hi all,

Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas?


Filechooser ShowSave:
    Dim f As FileChooser
    f.Initialize
    f.Title="Save File"
    f.InitialDirectory= File.DirApp
    f.InitialFileName="test.jpg"
    f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png"))
    f.ShowSave(B4XPages.GetNativeParent(Me))

1684473209629.png


Cheers,

Lildinti
 
Solution
Hi all,

Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas?


Filechooser ShowSave:
    Dim f As FileChooser
    f.Initialize
    f.Title="Save File"
    f.InitialDirectory= File.DirApp
    f.InitialFileName="test.jpg"
    f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png"))
    f.ShowSave(B4XPages.GetNativeParent(Me))

View attachment 142130

Cheers,

Lildinti
I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false...

Link with video:

DarkoT

Active Member
Licensed User
Hi all,

Trying to save file. using file this code in B4XPages gives me the resulting screen with no filters. Any ideas?


Filechooser ShowSave:
    Dim f As FileChooser
    f.Initialize
    f.Title="Save File"
    f.InitialDirectory= File.DirApp
    f.InitialFileName="test.jpg"
    f.SetExtensionFilter("Image File", Array As String("*.*","*.jpg","*.png"))
    f.ShowSave(B4XPages.GetNativeParent(Me))

View attachment 142130

Cheers,

Lildinti
I think this is part of setup of Explorer. Try this; go to control panel, find Explorer options, under View Tab try to find Option Hide suffix for known file types... It's need to be set to false...

Link with video:
 
Upvote 0
Solution
Top