Position Shortcut menu over Toolbar

topic: 

The code below shows how to position a shortcut menu over a toolbar buttons using GetCursorPos function and ScreenToClient function

. The idea was provided by Andrey Davidoff on UT in the message #913121.

RTF Control with inline shortcut menu

The code below shows how to implement a shortcut menu in RTF control when user types '#' character into control. It uses code from Windows API support class and Pixels and Foxels

.

Pixels and Foxels

Foxel is a Visual FoxPro term that corresponds to the maximum height and average width of a character in the current font. The row height corresponds to the maximum height of a letter in the current font; the column width corresponds to the average width of a letter in the current font.