1. LText Not Taking Focus
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"))
2. Re: LText Not Taking Focus
Correction: Subject should read "TextBox" not "LText." :/
3. Re: LText Not Taking Focus
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!
4. Re: LText Not Taking Focus
Mario Steele wrote:
>
> Try putting the setFocus(txt_CodeEntry) in win_CodeEntry_onOpen()
> instead of win_CodeEntry_onActivate()
Tried that and it didn't resolve. Thanks for the suggestion!