Components for Delphi and C++ Builder.

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

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 01 Jun 2022, 21:34 
Offline

Joined: 13 Jul 2019, 19:08
Posts: 88
I can't replicate this error, it's happening randomly, the same form I open it and sometimes the problem happens and sometimes it works normally.

The Bug is that the height of the Items gets smaller but as the font is big it gets squeezed and very weird.

See the two attached images and the video in the link below.

https://mega.nz/file/c7wQSDiT#azXhv0kI_ ... v4pUPhpYcw


Attachments:
Normal.png
Normal.png [ 80.31 KiB | Viewed 831 times ]
Bug1.png
Bug1.png [ 153.94 KiB | Viewed 831 times ]
Top
 Profile  
 
PostPosted: 02 Jun 2022, 08:08 
Offline

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

Please write in which place of the program you install a large font.
We need to simulate a similar situation in our test project.
When setting the font in the TForm.OnCreate event, the problem is never reproduced.

Code:
procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption := Caption + ' ' + EhLibVerInfo + ' ' + EhLibBuildInfo;
  Font.Size := 16;
end;

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 02 Jun 2022, 10:18 
Offline

Joined: 13 Jul 2019, 19:08
Posts: 88
I'm using Form1.ScaleBy
in the onCreate event however the problem is random and it doesn't happen every time it is very strange.

Attached is my unit that I manipulate the TComboboxEH for you to check if there is a problem in my codes

Note:
See in the video of the other post the problem is random
it doesn't happen all the time, in the video I opened the same form twice and the problem only happened the 1st time and the second time it doesn't.

I don't know how to replicate this problem.


Attachments:
Vcl.LFComponentsAlter.zip [3.09 KiB]
Downloaded 57 times
Top
 Profile  
 
PostPosted: 02 Jun 2022, 12:41 
Offline

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

I don't see any particular problems with the component code of Vcl.LFComponentsAlter.TComboBox.
You need to replace Vcl.LFComponentsAlter.TComboBox by DBCtrlsEh.TDBComboBoxEh to check if a problem in the Vcl.LFComponentsAlter.TComboBox.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 02 Jun 2022, 13:49 
Offline

Joined: 13 Jul 2019, 19:08
Posts: 88
Before I used TdbCombobxEh this unit used Delphi's Tcombobox Default and had no problems

The problem only happened after I switched to TDbComboboxEh.

Some time ago this same problem I had in DbGridEh and I reported it to you and you solved it, is it not the same problem?


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

All times are UTC


Who is online

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