[Gambas-user] Release of gambas 1.9.42

Timothy Marshal-Nichols timothy.marshal-nichols at ...247...
Wed Sep 13 13:21:42 CEST 2006



> This release has many changes in the gb.qt component and
> gb.settings that will
> break your projects:
>
> * The Dialog.Filter syntax is now the same as the gb.form
> FileChooser control.
>
>

The new file filter syntax appears to be a right mess:

1. For the gb.qt dialog you need to use the following syntax to get multiple
file types from the Dialog:

		Dialog.Filter = ["*.jpeg *.jpg", "Joint Photographic Experts Group"]
Note the space.

2. For the gb.form dialog and control you need to use the following syntax
to get multiple file types:

		Dialog.Filter = ["*.jpeg;*.jpg", "Joint Photographic Experts Group"]
Note the ;

3. For the gb.qt.kde dialog you need to use the following syntax to get
multiple file types from the Dialog:

		Dialog.Filter = ["Joint Photographic Experts Group (*.jpeg *.jpg)"]
Note the space.

4. For the gb.gtk dialog you need to use the following syntax to get
multiple file types from the Dialog:
		Dialog.Filter = ["Joint Photographic Experts Group (*.jpeg;*.jpg)"]
Note the ;

That's ***FOUR*** different formats for the file filter!!!!!!!

I have spent some time going through my projects updating the file filter.
For you this change might be just change some array type. But I have quite a
few projects that open files. So the change involves quite a lot of work.
Not only that I gain nothing from these changes, just extra work. And it
looks like I going to have to go through it all again when this mess is
fixed.

Also none of dialogs/control have valid help for the file format.

Thanks

8-{)} Timothy Marshal-Nichols
<mailto: timothy.marshal-nichols at ...247...>







More information about the User mailing list