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

Add TBaseVirtualTree.OnAddHeaderPopupItem event and 'Size Column to Fit' menu item to TVTHeaderPopupMenu #761

Merged
merged 1 commit into from
Feb 17, 2018

Conversation

alexmitev81
Copy link
Contributor

  • create new OnHeaderAddPopupItem event that links to the internal FColumnPopupMenu's OnAddHeaderPopupItem
  • add new 'Size Column to Fit' menu item to TVTHeaderPopupMenu
  • change sResizeToFit string to match Windows 10
  • move TAddPopupItemType type to VirtualTrees.pas
  • rename TAddHeaderPopupItemEvent to TVTHeaderAddPopupItemEvent and move to VirtualTrees.pas
  • rename private TVTHeaderPopupMenu.FOnAddHeaderPopupItem to TVTHeaderPopupMenu.FOnHeaderAddPopupItem to match type name (OnAddHeaderPopupItem event is not renamed for compatibility)
  • fix header popup menus position (offset Y by -FHeader.FHeight)

…olumnPopupMenu's OnAddHeaderPopupItem

- add new 'Size Column to Fit' menu item to TVTHeaderPopupMenu
- change sResizeToFit string to match Windows 10
- move TAddPopupItemType type to VirtualTrees.pas
- rename TAddHeaderPopupItemEvent to TVTHeaderAddPopupItemEvent and move to VirtualTrees.pas
- rename private TVTHeaderPopupMenu.FOnAddHeaderPopupItem to TVTHeaderPopupMenu.FOnHeaderAddPopupItem to match type name (OnAddHeaderPopupItem event is not renamed for compatibility)
- fix header popup menus position (offset Y by -FHeader.FHeight)
@alexmitev81 alexmitev81 changed the title - create new OnHeaderAddPopupItem event that links to the internal FC… Add TBaseVirtualTree.OnAddHeaderPopupItem event and 'Size Column to Fit' menu item to TVTHeaderPopupMenu Feb 15, 2018
@joachimmarder joachimmarder merged commit 63b296e into JAM-Software:master Feb 17, 2018
joachimmarder pushed a commit that referenced this pull request Feb 17, 2018
@joachimmarder
Copy link
Contributor

Thanks for your contribution.

alexmitev81 added a commit to alexmitev81/Virtual-TreeView that referenced this pull request Feb 21, 2018
joachimmarder pushed a commit that referenced this pull request Feb 21, 2018
Fix for #761: properly determine clicked point position in TVTHeaderPopupMenu.ResizeColumnToFit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants