Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: TPopupMenu with VCL Styles

Permlink Replies: 0
Pascal Bellebou...

Posts: 21
Registered: 6/12/04
TPopupMenu with VCL Styles
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 9, 2018 8:52 AM
In our applications, we are using lots of TPopupMenu which are dropped on a TDataModule.
We are currently adding style support on our applications and these popup menus are not displaying correctly when images are set on items (blank caption/text).

After deep debbugging, we found out that "TSysPopupStyleHook.TSysPopupItem.Create" calls "GetVCLParentMenuItem" which look for a parent item in each components of each forms available on the screen.

The PopupMenus dropped on a TDataModule are not found here, leading to the issue.

As these methods are in private sub types, it will be hard to fix it, so if someone has a trick/clue to solve this, it would be nice !

Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02