[Gambas-user] dialog.filter seems broken

Timothy Marshal-Nichols timothy.marshal-nichols at ...247...
Thu Sep 7 09:54:06 CEST 2006


> -----Original Message-----
> From: gambas-user-bounces at lists.sourceforge.net
> [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Benoit
> Minisini
> Sent: Wednesday, 06 September 2006 17:13
> To: mailing list for gambas users
> Subject: Re: [Gambas-user] dialog.filter seems broken
>
>
> On Wednesday 06 September 2006 15:02, Stefano Palmeri wrote:
> > Hi, Benoit.
> >
> > Running an old project that has a dialog filter with 1.9.40,
> > I found that the dialog.filter is broken: simply, it doesn't filter.
> >
> > This code, taken from the help doesn't work:
> >
> > Dialog.Title = "Choose a file"
> > Dialog.Filter = ["Picture files (*.png; *.jpg; *.jpeg; *.bmp)",
> "All files
> > (*)"]

Currently you miss out the ;'s and it should work:

  Dialog.Filter = ["Picture files (*.png *.jpg *.jpeg *.bmp)", "All files
(*)"]

> > Dialog.Path = User.Home
> > IF Dialog.OpenFile() THEN
> >   RETURN
> > ENDIF
> >
> > I'm just able to see all files, not filtered image files.
> >
> > Gambas 1.9.40
> > KDE 3.4.2
> >
> > Regards,
> >
> > Stefano Palmeri
> >
>
> The syntax of Dialog.Filter will change in the next version. It
> will be the
> same between Dialog.OpenFile, FileChooser and KDE
> Dialog.OpenFile: a string
> array with alternatively the search pattern and the description (or the
> contrary, I don't remember).
>
> Regards,
>
> --
> Benoit Minisini
>
>

Thanks

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






More information about the User mailing list