Re: How can I make a field ready to receive typing?
- Posted by George Walters <gwalters at sc.rr.com> Oct 08, 2003
- 439 views
I've also had this (and still do) problem on edit text boxes, but haven't figured out a simple program to expose it. Will keep trying. So we must have a boogen somewhere. george ----- Original Message ----- From: <Louis at cwshop.com> To: "EUforum" <EUforum at topica.com> Subject: How can I make a field ready to receive typing? > > > My windows are working fine. However, when the input window opens, the cursor is nowhere to be seen. I must either click on the input field or hit TAB to produce a cursor so that I can type in the field. > > As someone suggested, I tried SetFocus() to that field in a procedure that is triggered by w32HActivate of that window. When I do that, I still have no cursor and cannot type. However, pressing TAB causes the highlight to appear at the next thing AFTER the input field, so I know that the cursor was on the input field, it just wasn't enabled for some reason. One example (childwin.exw) does achieve a field open for input, but they used onXXX, which is not compatible with the setHandler style I am using. > > I have found the Win32 SDK documentation in msdn.microsoft.com, but am having trouble relating it to Euphoria. I know how to write programs, but I am a beginner at Windows Programming. > > Is there a Euphoria routine that invokes "SendInput"? If so, I could use it to send a TAB right after the window opened (instead of using SetFocus) which would open the desired field for input, though I don't particularly like this approach because it could interact with the keyboard and cause unexpected results. > > I learned an incredible thing while examining examples. If I create a window with flags set to {WS_CAPTION,WS_SYSMENU}, the window becomes unresizable. This is a property I wanted, but I have no idea why it works. Can you imagine how frustrated I would be if I tried to learn how to do this by manually searching the the Windows SDK? (No computer search is possible, as it is in a number of separate pages, and Microsoft's search engine doesn't help.) > > HELP! > > Thanks, > Louis. > > > > TOPICA - Start your own email discussion group. FREE! > >