Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to customize StaticText alignment #969

Closed
brethren70 opened this issue May 7, 2020 · 2 comments
Closed

Allow to customize StaticText alignment #969

brethren70 opened this issue May 7, 2020 · 2 comments
Assignees
Milestone

Comments

@brethren70
Copy link

brethren70 commented May 7, 2020

Please, give me a chance to set the alignment of static text.

VirtualTrees.TCustomVirtualStringTree.PaintStaticText

in the source, alignment of static text is decided according to column's alignment.
Thanks in advance.

image

@joachimmarder
Copy link
Contributor

I will extend the OnGetCellText´ to achieve this. It has to be used instead of the OnGetText` event. I will change the Advanced project, General Abilities demo to achieve this.

@joachimmarder joachimmarder added this to the V7.4 milestone May 10, 2020
@joachimmarder joachimmarder changed the title StaticText alignment(PaintStaticText) Allow to customize StaticText alignment May 10, 2020
@joachimmarder
Copy link
Contributor

Within this issue the, the unused paramter TextOutFlags of PaintStaticText() was replaced with a new one names pStaticTextAlignment. As PaintStaticText() is protected, this is a breaking change for derived classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants