How are the keyboard inputs sent to the Microsoft Rich Text Editor ActiveX control that is embedded in a GUI?
1 view (last 30 days)
Show older comments
I have a GUI (in focus) with an ActiveX Control like Microsoft Rich Text Editor, that can contain text. When the ActiveX control is empty and I press CTRL-C, the keyboard command is sent to the MATLAB workspace instead. This does not occur in the case of Edit Boxes embedded in a GUI. Why does the keyboard input of CTRL-C get redirected to the MATLAB workspace?
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This is expected behavior. Keyboard input is first sent to the window in focus. In this case, the active window is the figure that contains an ActiveX Control. When the ActiveX control gets the keyboard input sequence it determines what needs to be done with it. If the input is recognized by the ActiveX, the entry is executed. Otherwise, it passes the sequence to the MATLAB workspace.
0 Comments
More Answers (0)
See Also
Categories
Find more on ActiveX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!