Home » U++ Library support » U++ Library : Other (not classified elsewhere) » How to catch and overwrite child control event?
Re: How to catch and overwrite child control event? [message #13683 is a reply to message #13673] |
Tue, 22 January 2008 00:38 |
kompotFX
Messages: 7 Registered: January 2008
|
Promising Member |
|
|
Ok guys, thank you for quick response.
1. I have tested including class MyClassX; before .lay lines. Same errors. I'm using upp 712-dev1. I included code in TestUpp.zip file, you can try to review it. Im try to derrive DocEditEx class from DocEdit control.
Compiler says:
In file included from C:\upp\uppsrc/CtrlCore/lay.h:22,
from C:\upp\examples\TestUpp\/TestUpp.h:11,
from C:\upp\examples\TestUpp\main.cpp:1:
C:\upp\examples/TestUpp/TestUpp.lay:2: error: field 'editTest' has incomplete type
C:\upp\examples/TestUpp/TestUpp.lay: In function 'void InitLayout(Upp::Ctrl&, L&, D&, TestUppLayout__layid&)
[with L = TestUpp, D = TestUpp]':
2. 2Oblivion:
Yes your suggestion in KeyTest code works, but gives no result, I expected. I need to control user input, not only observe changes.
I uploaded TestMfc_bin.zip - simple example made using MFC which changes user input "z"->"y" and "y"->"z" letters during typing.
Here also source in TestMfc_src.zip Check the CTestMfcDlg::PreTranslateMessage method which doing this functionality.
How can I achieve the same effect in UPP?
[Updated on: Tue, 22 January 2008 00:39] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 13 18:26:05 CEST 2024
Total time taken to generate the page: 0.02490 seconds
|