Solved

Replacement to the FilterComboBox??

Posted on 2001-07-15
6
296 Views
Last Modified: 2010-04-04
Hi!,

I need combonent which is similar to the FilterComboBox.
So you probably wonder why?? Because FilterComboBox does not handle quite well long string list mask's. It cuts at end of the mask, few file masks away. So is there any freeware combonent what done's file maskin better than FilterComboBox?? Or is there another way that can i handle huge masks??

Regards Marko
0
Comment
Question by:mhieta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6283953
Hello

  I havn't seen any component to do that, maybe you need to make the filtercombobox width to handle all the strings, but i think for better way, add hint to the filtercombobox when you move the mouse above line not complete like delphi do when you choose press dot after component name
0
 
LVL 2

Author Comment

by:mhieta
ID: 6287033
Hello,

Do you mean like this to the hint:

*.BMP;*.RLE;*.DIB;*.JPG;*.JPE;*.JPEG;*.JFIF;
*.WMF;*.ICO;*.GIF;*.TIF;*.TIFF;*.TGA;*.VST;
*.ICB;*.VDA;*.WIN;*.BW;*.RGB;*.RGBA;*.SGI;
*.CEL;*.PIC;*.PCX;*.PCC;*.SCR;*.PCD;*.PPM;
*.PGM;*.PBM;*.CUT;*.PAL;*.PSD;*.PDD;*.RLA;
*.RPF;*.FAX;*.PSP;*.PNG

Now i use this code and it works fine.

  if FilterComboBox1.ItemIndex = 0 then
  begin
  FilterComboBox1.Hint:='*.gif;*.png;*.psp;*.cut;*.pcd;*.pic;*.cel;*.pbm;*.pgm;*.ppm;*.pdd;*.psd;*.bw;*.rgb;*.rgba;*.sgi;*.rla;*.rpf;*.scr;*.pcc;*.pcx;*.eps;*.fax;*.tif;*.tiff;*.icb;*.tga;*.vda;*.vst;*.win;*.dib;*.rle;*.jpeg;*.jpe;*.jpg;*.jfif;*.emf;*.wmf;*.ico;*.bmp';
  end
  else
  begin
  FilterComboBox1.Hint:=FilterComboBox1.Mask;
  end;
  if FilterComboBox1.ItemIndex = 0 then
  begin
  DirView1.Mask:='*.gif;*.png;*.psp;*.cut;*.pcd;*.pic;*.cel;*.pbm;*.pgm;*.ppm;*.pdd;*.psd;*.bw;*.rgb;*.rgba;*.sgi;*.rla;*.rpf;*.scr;*.pcc;*.pcx;*.eps;*.fax;*.tif;*.tiff;*.icb;*.tga;*.vda;*.vst;*.win;*.dib;*.rle;*.jpeg;*.jpe;*.jpg;*.jfif;*.emf;*.wmf;*.ico;*.bmp';
  FileNameSearch.FileListBox1.Mask:='*.gif;*.png;*.psp;*.cut;*.pcd;*.pic;*.cel;*.pbm;*.pgm;*.ppm;*.pdd;*.psd;*.bw;*.rgb;*.rgba;*.sgi;*.rla;*.rpf;*.scr;*.pcc;*.pcx;*.eps;*.fax;*.tif;*.tiff;*.icb;*.tga;*.vda;*.vst;*.win;*.dib;*.rle;*.jpeg;*.jpe;*.jpg;*.jfif;*.emf;*.wmf;*.ico;*.bmp';
  end
  else
  begin
  DirView1.Mask:=FilterComboBox1.Mask;
  FileNameSearch.FileListBox1.Mask:=DirView1.Mask;
  end;

But if you have more sophisticated method to display current mask in the hint, i'm listening.

Regards Marko
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6288767
try this

FilterComboBox1.Hint := FilterComboBox1.Mask;
or
FilterComboBox1.Hint := FilterComboBox1.Filter;
 
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Author Comment

by:mhieta
ID: 6292739
FilterComboBox1.Hint := FilterComboBox1.Mask;
or
FilterComboBox1.Hint := FilterComboBox1.Filter;

Those are not working either. Both cases cuts at end of the mask, few file masks away.

I think if there isn't any replacement to the FilterComboBox to handle huge mask strings. And my code solves problem fine. I will delete this question soon.

Regards Marko

0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 50 total points
ID: 6292957
Hello

  separate ur hint to lines using #13

combobox1.Hint := '*.gif;*.png;*.psp;*.cut;*.pcd;*.pic;*.cel;' + #13 + '*.pbm;*.pgm;*.ppm;*.pdd;*.psd;*.bw;*.rgb;*.rgba;*.sgi;*.rla;*.rpf;*.scr;*.pcc;*.pcx;*.eps;*.fax;*.tif;*.tiff;*.icb;*.tga;*.vda;*.vst;*.win;*.dib;' + #13+ '*.rle;*.jpeg;*.jpe;*.jpg;*.jfif;*.emf;*.wmf;*.ico;*.bmp';
0
 
LVL 2

Author Comment

by:mhieta
ID: 6295022
Ok, thanks mnasman. Now Hint looks better than it was.

See you at next question...

Regards Marko
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Working with hours 3 86
Delphi Yen format 3 71
Dev express lookupcombo 3 64
Get weeknumber and year from date 4 55
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question