RE: How can I make a field ready to receive typing?
- Posted by Rangi <totorangi at hotmail.com> Oct 08, 2003
- 381 views
Louis Never had a problem with setFocus when used within a w32HActivate routine. However, I have often used it followed by a setIndex in order to position the cursor at some point within the editText field or to select all the text in a prefilled field. You could try that..... Rangi Louis at cwshop.com wrote: > > > OK, Thanks. I tried it and > WinMain( {firstwindow, focuscontrol}, Normal ) > Does exactly the same thing as setFocus(focuscontrol). > Oh well. > > Wishlist items: > Add a line to Win32Lib: > global constant WS_NO_RESIZE = {WS_CAPTION,WS_SYSMENU} > > And, as time permits, add a short comment to constants like this in the > source that describes what they do, in lieu of documentation. Then I > could browse (and search) Win32Lib source to find the flags that I need, > since they are not listed in the main documentation. Even mentioning in > the documentation where constants starting with "WS_" (and other > prefixes too) are used would be of some help. For example, in the > documentation for "create()", you could mention that the names for flag > constants start with "WS_" and for createEx() you could say what the > prefix for exFlags constants are. > > Louis. > > *********** REPLY SEPARATOR *********** > > On 10/8/2003 at 2:14 PM Derek Parnell wrote: > > > > >----- Original Message ----- > >From: <Louis at cwshop.com> > >To: "EUforum" <EUforum at topica.com> > >Sent: Wednesday, October 08, 2003 8:47 AM > >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. > > > >Try this ... > > > > WinMain( {firstwindow, focuscontrol}, Normal) > <snip> > >