Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 19 Apr 2024, 21:41

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Own filter form
PostPosted: 18 Aug 2018, 11:37 
Offline

Joined: 18 Aug 2018, 11:33
Posts: 8
Hi all,

Is there any way to use title filter buttons for show my own filter form (I want to implement quite complex logic in it)?

Tnx in advance.


Top
 Profile  
 
 Post subject: Re: Own filter form
PostPosted: 22 Aug 2018, 15:55 
Offline

Joined: 18 Aug 2018, 11:33
Posts: 8
Nobody's here?


Top
 Profile  
 
 Post subject: Re: Own filter form
PostPosted: 25 Aug 2018, 23:08 
Offline

Joined: 08 May 2014, 18:06
Posts: 663
Hello

If you going to extend standard filter form - TDBGridFilterDropDownForm
You can inherit TDBGridFilterDropDownForm and
Code:
  TNewFilterForm = class(TDBGridFilterDropDownForm)
...


assign global variable DBGridFilterDropDownForm
Code:
initialization
  DBGridFilterDropDownForm := TNewFilterForm.Create(Application);
end.


If you are going to write new filter form from scratch.
You should change source code of DBGridEh.pas

procedure TCustomDBGridEh.InTitleFilterDropDownFormForRect(Column: TColumnEh; ForRect: TRect);

You can copy DBGridEh.pas to the folder with your project and change
TCustomDBGridEh.InTitleFilterDropDownFormForRect
method

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group