M
MuZZy
Hi,
The problem i have is to show a ContextMenu on a toolbar depending on
which ToolBarButton is currently under cursor. Is there any way to find
out which ToolBarButton mouse is pointing? ToolBar.GetChildAtPos()
doesn't work as ToolBarButton is not a child control fo a toolbar...
I am implementing a sort of Windows Task Bar for my MDI application, and
when you right click on a button representing your form you get some
menu items according to your form windowstate - Maximize, Minimize,
Restore... Each toolbar button is somehow linked to a MDI child form so
if i know on what button ContextMenu popped-up, i will know what is the
respective form and its state and what menu items to show.
Any ideas?
Thnak you,
MuZZy
The problem i have is to show a ContextMenu on a toolbar depending on
which ToolBarButton is currently under cursor. Is there any way to find
out which ToolBarButton mouse is pointing? ToolBar.GetChildAtPos()
doesn't work as ToolBarButton is not a child control fo a toolbar...
I am implementing a sort of Windows Task Bar for my MDI application, and
when you right click on a button representing your form you get some
menu items according to your form windowstate - Maximize, Minimize,
Restore... Each toolbar button is somehow linked to a MDI child form so
if i know on what button ContextMenu popped-up, i will know what is the
respective form and its state and what menu items to show.
Any ideas?
Thnak you,
MuZZy