Dear Fons and Stanislav
Thank you for this great solution. It really solves my special case.
(In the case of *.txt, the only problem would be that normal users
would be confused to see a grep expression instead of what they
usually expect. But for the moment it does not matter.)
Best regards
Christian
Fons Rademakers wrote:
>Hi Stanislav,
>
> thanks for these remarks. In the GUI the following works and solves
>Christian's problem:
>
>const char *filetypes[] = { "All files", "*",
> "Text files", "*.[tT][xX][tT]",
> 0, 0 };
>
>Cheers, Fons.
>
>
>
>On Mon, 2003-05-26 at 22:45, Stanislav Nesterov wrote:
>
>
>> Hi,
>> I just want to clarify one point:
>>expression "*.{txt,TXT}" in fact is not regexp at all but shell wildcard.
>>
>> To be more precise similar condition can be achieved via regex:
>> .*\.(txt|TXT)
>> or even
>> .*\.[tT][xX][tT]
>>
>> Best regards,
>> Stanislav.
>>
>>On 26 May 2003, Fons Rademakers wrote:
>>
>>
>>
>>>Hi Christian,
>>>
>>> this is currently not supported via our regexp processor. Ideally this
>>>should work "*.{txt,TXT}" but currently it doesn't.
>>>
>>>Cheers, Fons.
>>>
>>>
>>>
>>>On Sun, 2003-05-25 at 19:13, cstrato wrote:
>>>
>>>
>>>>Dear Rooters
>>>>
>>>>TGFileDialog offers the possibility to show only files
>>>>of selected type TGFileInfo::fFileTypes.
>>>>
>>>>However, I would like to display e.g. text-files only,
>>>>which could have the extension *.txt or *.TXT.
>>>>Is this possible, and how can I achieve this?
>>>>
>>>>Thank you in advance.
>>>>Best regards
>>>>Christian
>>>>_._._._._._._._._._._._._._._._
>>>>C.h.i.s.t.i.a.n S.t.r.a.t.o.w.a
>>>>V.i.e.n.n.a A.u.s.t.r.i.a
>>>>_._._._._._._._._._._._._._._._
>>>>
>>>>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET