Board index » cppbuilder » Click through a panel.
Jaepil Kim
CBuilder Developer |
Jaepil Kim
CBuilder Developer |
Click through a panel.2004-01-15 12:16:42 PM cppbuilder64 Hello. I want to have a panel over a multiple controls including text controls. I want to catch Click events on the panel. But i want the controls below the panel to catch the events as well. Basically as soon as the panel receives the click it will disappear then the controls below will receive the focus with correct caret position when applicable. How can i do this? |
Hans Galema
CBuilder Developer |
2004-01-15 04:52:19 PM
Re:Click through a panel.
Jaepil Kim wrote:
QuoteI want to have a panel over a multiple controls including text controls. QuoteI want to catch Click events on the panel. But i want the controls below that triggers before OnClick. Then there is somewhere a function ControlAtPos that could give you the underlying control. You have to transform the coordinates to the coordinates for the control. Finally with send_message you can send a WM_LBUTTONDOWN and a WM_LBUTTONUP to the control. I just wrote this down from memory. Hope it gets you started. Hans. |