Re: Edit text fields in child windows

new topic     » goto parent     » topic index » view thread      » older message » newer message

Chris McConnell wrote:
> 
> I am a new user of Euphoria and I have tried to use child windows.
> 
> Has anyone come up with a solution to the problem where selecting a text edit
> field in a child window with a mouse will not cause the field to become in
> focus.
> I see in the forum where other programmers have had the issue but I did not
> find a fix. 
> 
> I can set tab stops and advance through the text edit fields but I have not
> been able to select a field in a child window with a mouse click.
> 
> TIA


I  tried various things, and came up with the following:
1/ the window procedure associated to a window with the WS_CHILD flag
doesn't send the right messages to an edit field when the latter gets mouse
clicks (and it actually gets them). Edit fields are supposed to appear in
top level windows or in dialog boxes.

2/ Edit fields are antiquated components that existed before win 3.0. This
may explain 1/, and why 1/ doesn't have an easy fix.

3/ But after all, RichEdit controls are more recent and don't depend so much
on the parent, so use RichEdit instead of EditText in child windows.

4/ But you'll have to create them with the right styles, and using findText()
will fail on NT based systems (will be fixed in the next version of win32lib).
Does the code in http://www.listfilter.com/EUforum/m13681.htm
help? See if it works for you.

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu