Re: Mouse clicks in EditText with CWindow as Parent
- Posted by Judith Evans <camping at ccewb.net> Apr 14, 2007
- 635 views
Judith Evans wrote: > > CChris wrote: > > > > Rad wrote: > > > > > > Hi, > > > > > > The EditText controls do not get focus with mouse clicks when their parent > > > is > > > ChildWindow (CWindow) control. One can neither click and place the cursor > > > on > > > them, nor can select a part or full text present in it. Other controls > > > like > > > PushButtons, Combo etc respond correctly to mouse click. Only the EditText > > > control > > > seems to have this problem. > > > > > > Any suggestions about how to overcome this? > > > > > > Regards, > > > Rad. > > > > > > Which GUI library are you using? If win32lib, this could be an IDE issue, > > are you using it? (CWindow isn't a native control in win32lib) > > > > CChris > > Chris, CWindow is not the class it the way IDE identifies the control > internally. > When the exw is generated the child window is Window class. > > BTW, I ran a program generated by IDE which has a child window with an > EditText > control and it also has the same problem using your latest test win32lib. > > judith I forgot to include the example.....
include Win32Lib.ew without warning -------------------------------------------------------------------------------- -- Window Window1 constant Window1 = createEx( Window, "Window1", 0, Default, Default, 400, 300, 0, 0 ) constant CWindow3 = createEx( Window, "", Window1, 56, 24, 200, 100, w32or_all({WS_CHILD}), 0 ) openWindow(CWindow3, Normal) constant EditText4 = createEx( EditText, "EditText4", CWindow3, 8, 28, 48, 20, 0, 0 ) --------------------------------------------------------- WinMain( Window1,Normal )