Components for Delphi and C++ Builder.

Go to Russian forum
Go to EhLib.com
It is currently 18 Apr 2024, 11:37

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 21 May 2020, 17:08 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
The property TDBCheckBoxEh.Alignment does only work during design time. It seems on runtime the control shows only the style like taRightJustify???

I also expected that your controls have the properties ControlLabel and ControlLabelLocation, so could you deliver this for TDBCheckBoxEh (like TDBEditEh)? In that case I would prefer to keep the Caption too, so i could remove the Caption if I like sometimes.

Thanks for any help or suggestion!


Top
 Profile  
 
PostPosted: 21 May 2020, 19:28 
Offline

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

I don't see any problem with TDBCheckBoxEh.Alignment at Demo project
Could you create project the shows the problem?


Attachments:
sshot-104.png
sshot-104.png [ 8.2 KiB | Viewed 1875 times ]

_________________
Best regards
EhLib Support Team
Top
 Profile  
 
PostPosted: 21 May 2020, 21:07 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
I'm so sorry, that was my error! You are right, the Alignment property works well and the error was an inherited control of mine.

Is there a way to add the missing properties ControlLabel and ControlLabelLocation?


Top
 Profile  
 
PostPosted: 21 May 2020, 22:02 
Offline

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

I'm not sure that I understood the question about ControlLabel and ControlLabelLocation in TDBCheckBoxEh.
TDBCheckBoxEh doesn't have ControlLabel and ControlLabelLocation properties as it already have Caption property and Font property itself.
If you want hide Text Caption, just assign Caption by empty string.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 21 May 2020, 22:49 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Yes of course. But I would like to set the ControlLabel like the one from TDBEdit. In this way I have the possibilities to place the Caption on the exact place in top or left of the Checkbox. This additional behavior is nice and better than the standard Checkboxes. The same reason to use the ControlLabel in your other components.

I can't place the standard Checkbox with Alignment taLeftJustify in left justified lines with other controls like TEdits if i have to use the Caption. I don't know the width of the Checkbox rectangle and their size is varying, depending on properties Flat and Ctl3D. Which width should I set? Or I have to use a TLabel with a TCheckbox with Alignment taRightJustify but that is the argument for ControlLabel, I think?

With ControlLable I could use a Caption in left front of the Checkbox, I could use the standard Caption for additional informations or remove the standard Caption. Sorry for the inconvenience, but for a large project it is important to have a consistent representation of the controls.

Look at the attachment, please.


Attachments:
File comment: Sample Screenshot
Screenshot (4).png
Screenshot (4).png [ 107.89 KiB | Viewed 1872 times ]
Top
 Profile  
 
PostPosted: 24 May 2020, 16:52 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Hello dear Support,

here is an example as an attachment to understand both problems.

The Alignment Bug is always reproducible for apps with Themes.

To understand my second request about TDBCheckboxEh.ControlLabel look at the second part of my sample app, please.


Attachments:
test.zip [132.97 KiB]
Downloaded 84 times
Top
 Profile  
 
PostPosted: 29 May 2020, 23:54 
Offline

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

Thank you for example.

About bug with Left or Right Checkbox in Custom Themes mode.
We will fix it at the next build.

About ControlLabel for TDBCheckboxEh.
In your case it would really be convenient to use ControlLabel.
We will add this request for the next version of the library.

_________________
Best regards
EhLib Support Team


Top
 Profile  
 
PostPosted: 30 May 2020, 15:33 
Offline

Joined: 21 May 2020, 16:48
Posts: 13
Great support from you, thank you very much!

Best regards


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB® Forum Software © phpBB Group