Discussion:
[Iup-users] Can IupFileDlg() set filters which ignoring cases?
Andy Xiyue
2017-06-08 05:56:43 UTC
Permalink
Hi Scuri

When I'm using IupFileDlg() to choose video files, I set the EXTFILTER like
"Video files|*.mp4"to filter out the most likely files.

However I noticed it doesn't display files with extensions that aren't in
all lowercase, e.g.: Myvideo.MP4 or even Myvideo.Mp4 in gtk build. The
windows build works fine.

It looks I have to set something ugly like "Video
files|*.mp4|*.MP4|*.mP4|*.Mp4", or, if there's a switch in IupFileDlg() to
make it caseless?

Kind regards
Andy
Antonio Scuri
2017-06-08 09:49:36 UTC
Permalink
Hi,

We use "gtk_file_filter_add_pattern" in Linux. There is no option for
case sensitiveness. Sorry.

Best,
Scuri
Post by Andy Xiyue
Hi Scuri
When I'm using IupFileDlg() to choose video files, I set the EXTFILTER
like "Video files|*.mp4"to filter out the most likely files.
However I noticed it doesn't display files with extensions that aren't in
all lowercase, e.g.: Myvideo.MP4 or even Myvideo.Mp4 in gtk build. The
windows build works fine.
It looks I have to set something ugly like "Video
files|*.mp4|*.MP4|*.mP4|*.Mp4", or, if there's a switch in IupFileDlg()
to make it caseless?
Kind regards
Andy
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
https://lists.sourceforge.net/lists/listinfo/iup-users
Andy Xiyue
2017-06-08 10:27:03 UTC
Permalink
Thanks Scuri. That's fine, gtk issue.

Cheers
Andy
Post by Antonio Scuri
Hi,
We use "gtk_file_filter_add_pattern" in Linux. There is no option for
case sensitiveness. Sorry.
Best,
Scuri
Post by Andy Xiyue
Hi Scuri
When I'm using IupFileDlg() to choose video files, I set the EXTFILTER
like "Video files|*.mp4"to filter out the most likely files.
However I noticed it doesn't display files with extensions that aren't in
all lowercase, e.g.: Myvideo.MP4 or even Myvideo.Mp4 in gtk build. The
windows build works fine.
It looks I have to set something ugly like "Video
files|*.mp4|*.MP4|*.mP4|*.Mp4", or, if there's a switch in IupFileDlg()
to make it caseless?
Kind regards
Andy
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
https://lists.sourceforge.net/lists/listinfo/iup-users
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
https://lists.sourceforge.net/lists/listinfo/iup-users
Loading...