I have a problem with aligning items when the container (Docking panel) is resizable.
I got a number of TCheckBox'es, displayed vertically like this:
- Code: Select all
----------------------------------------
| □ this is the first checkbox caption |
| □ this is the second checkbox caption |
| □ this is the last checkbox caption |
----------------------------------------
My problem is that I can't figure out how to setup the anchors etc. so that each TCheckBox caption is still visible (like this) when docking panel is resized.
- Code: Select all
------------------------
| □ this is the first |
| checkbox caption |
| □ this is the second |
| checkbox caption |
| □ this is the last |
| checkbox caption |
------------------------
I have set WordWrap to true on the TCheckBox items, which wraps the text correctly. But the height of the TCheckBox does not resize, only the width.
And here's a couple more questions:
1) To adjust sizes/positions of GUI elements, the value can be multiplied with the factor stored in Script.DpiScale. But how do you adjust the font size? I can use the WeBuilder base font size in WeBuilder.Font.Size and WeBuilder.Font.Height (Not quite sure what the difference is, other than different values). But these values are negative numbers. Are they automatically set to the correct value, or do I also have to multiply that value with the factor stored in Script.DpiScale?
2) What VCL/Delphi color codes/aliases (like "clWindowText") are used in WeBuilder for the various components? Can you make a list of those? As I assume there's a general color alias used for background, button color etc. So by using that, there will be no need to adjust the colors for each theme.
My plugin docking panel has grey background color as default but that doesn't match the background color of the interface style of Flat Blue, which I'm currently using.
3) Can I access the Preferences -> General -> Interface Language from a plugin? That would be useful to create multilingual plugins.