forked from JAM-Software/Virtual-TreeView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- updated method `TBaseVirtualTree.GetOffsets`: - added new local variable `lNodeIdent` to calculate `MainColumn`'s indentation - initialized `pOffsets` elements `ofsToggleButton` and `ofsCheckBox` neutrally with `ofsMargin` - for `MainColumn`: - increase `pOffsets` for `ofsToggleButton` by full value of `lNodeIndent` first - then decrease it, as before, to center the toggle button's position - increase `ofsCheckBox` by full value of `lNodeIdent` - eventually apply `fImagesMargin` to ` `ofsCheckBox` only if conditions for check image display are met - note that `fImagesMargin` is applied for `ofsStateImage` and `ofsImage` within the respective calls of `GetImageSize` as needed
- Loading branch information
1 parent
7e988f5
commit a13004a
Showing
1 changed file
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters