Comments (3)
Thanks!
But, shouldn't TBaseVirtualTree.AutoScale behave in a similar way?
from virtual-treeview.
Is there a reason for this behaviour?
Well, I guess the original idea was to let the developer decide about the header height, but prevent cut off text which never makes sense.
Furthermore, changing the font is not the same as dpi-scaling. In dpi-scaling you have M
and D
and so can keep the relations between header height and other elements of the control.
How about tying the header height to DefaultNodeHieght
?
from virtual-treeview.
I guess the original idea was to let the developer decide about the header height,
In that case the developer should not set toAutoChangeScale. Especially now that it is decoupled from DPI scaling. Setting this flag means that you allow VT to optimize node and header height, based on the font size.
How about tying the header height to
DefaultNodeHieght
?
This would not work when the header ParentFont is False. And in any case DefaultNodeHeight is also incorrect when you decrease the font size. The suggested changes fix both DefaultNodeHeight and header height.
Just think what needs to be done otherwise, if a user assigns a font with smaller size at run time:
- Change DefaultNodeSize manually
- Change the height of existing nodes.
- Change the header height manually
from virtual-treeview.
Related Issues (20)
- Advanced Demo Memory leak (TPicture) HOT 1
- Keep current selection when right-clicking a selected node (toRightClickSelect enabled) HOT 2
- Double click on cell reverts focus to VT when custom combobox editor is showed with DroppedDown:=True; HOT 1
- Setting LineStyle to lsDotted does not work HOT 1
- TBaseVirtualTree.AddChild( ) fails for toReadOnly HOT 2
- Clarification please regarding OnFreeNode handling for strings etc HOT 2
- OnShortenString not called for column headers HOT 2
- OnHeaderClick Event triggered twice if vclstyle enabled HOT 2
- Tree lines not painted HOT 3
- How to get lighter/finer GridLines; GridLineColor not used. HOT 4
- Columns EndUpdate and duplicate position HOT 14
- Does TVirtualstringTree support multi-level headers? HOT 1
- AutoScale is setting wrong node height HOT 2
- Packages for Delphi 12 Athens? HOT 1
- Update to Delphi 12 HOT 2
- Access violation while changing the theme HOT 3
- Bad Assert in TVirtualTreeColumns.GetPreviousColumn
- Fixed column MinWidthPercent leads to inifinite loop
- 8.0.1 compile error HOT 3
- Is 7.6.6 an alias of 8.0? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtual-treeview.