Solved

Replacement to the FilterComboBox??

Posted on 2001-07-15
6
293 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: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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 49
Controlled Assessment GCSE - desperate help needed 4 85
Dev express lookupcombo 3 28
Installshield for Embarcadero EX 10.1 Berlin 4 41
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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