Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 28 Mar 2024, 09:53

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Height of Searchpanel
PostPosted: 08 Dec 2018, 18:22 
Offline

Joined: 06 May 2014, 07:03
Posts: 20
Hey Dev-Team,

is it possible to change the FontSize / Size from the Searchpanel?
I can find no entry about this.

Best Regards


Top
 Profile  
 
PostPosted: 15 Dec 2018, 11:31 
Offline

Joined: 06 May 2014, 07:03
Posts: 20
serocool wrote:
Hey Dev-Team,

is it possible to change the FontSize / Size from the Searchpanel?
I can find no entry about this.

Best Regards



… anybody on Board ?


Top
 Profile  
 
PostPosted: 15 Dec 2018, 17:38 
Offline

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

Sorry for delay.
Unfortunately, we did not find a way to change the font or size of the Search Panel using properties or inheritance.
The only way so far is to change the source code.

The font can be changed in the method TCustomDBGridEh.UpdateSearchPanel
Code:
   procedure TCustomDBGridEh.UpdateSearchPanel;
...
       FSearchPanelControl.FindEditor.Font: = Font;
       FSearchPanelControl.FindEditor.Font.Size: = 12; // New Code to change Font


In the same method, you can change the size of the SearchPanel panel.

Code:
         FSearchPanelControl.SetBounds (SPRect.Left, SPRect.Top, RectWidth (SPRect), RectHeight (SPRect));

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 16 Dec 2018, 15:28 
Offline

Joined: 06 May 2014, 07:03
Posts: 20
EhLibSupport wrote:
Hello

Sorry for delay.
Unfortunately, we did not find a way to change the font or size of the Search Panel using properties or inheritance.
The only way so far is to change the source code.

The font can be changed in the method TCustomDBGridEh.UpdateSearchPanel
Code:
   procedure TCustomDBGridEh.UpdateSearchPanel;
...
       FSearchPanelControl.FindEditor.Font: = Font;
       FSearchPanelControl.FindEditor.Font.Size: = 12; // New Code to change Font


In the same method, you can change the size of the SearchPanel panel.

Code:
         FSearchPanelControl.SetBounds (SPRect.Left, SPRect.Top, RectWidth (SPRect), RectHeight (SPRect));


Thanks a lot.... it works ;-)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 61 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