Solved

Replacement to the FilterComboBox??

Posted on 2001-07-15
6
290 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
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:mnasman
Comment Utility
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
Comment Utility
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:mnasman
Comment Utility
try this

FilterComboBox1.Hint := FilterComboBox1.Mask;
or
FilterComboBox1.Hint := FilterComboBox1.Filter;
 
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 2

Author Comment

by:mhieta
Comment Utility
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:
mnasman earned 50 total points
Comment Utility
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
Comment Utility
Ok, thanks mnasman. Now Hint looks better than it was.

See you at next question...

Regards Marko
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now