Re: LText Not Taking Focus
- Posted by Mario Steele <eumario at tuscanchat.com> May 04, 2004
- 394 views
Try putting the setFocus(txt_CodeEntry) in win_CodeEntry_onOpen() instead of win_CodeEntry_onActivate() EuMario cklester wrote: > > >posted by: cklester <cklester at yahoo.com> > >I've got a small dialog box being opened with >openDialog() that won't let me set the focus >of a textbox. When the code runs, below, the >setText() procedure works fine, but the textbox >does not have focus! What's up with that?! > >procedure win_CodeEntry_onActivate (integer self, integer event, sequence >params)--params is () > setFocus( txt_CodeEntry ) > setText( txt_CodeEntry, "I'm Here!" ) >end procedure >setHandler( win_CodeEntry, w32HActivate, >routine_id("win_CodeEntry_onActivate")) > > -- Enchanted Blade (Mario) Brain: Come Pinky, let's return to the cage, to plan for tommorrow night. Pinky: Why Brain, what are we gonna do tommorrow night? Brain: Same thing we do every night Pinky, try to take over the world!