realbasic-nug
[Top] [All Lists]

Re: Editfield troubles (The plot thickens)

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Editfield troubles (The plot thickens)
From: Dave <mrtoast at gmail dot com>
Date: Sun, 31 Oct 2004 11:29:38 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=XK1CygC7BCM6jmWaVDo4gxu73w7bpF4TR/IyntPySHaUlHWa78GLhcFiu/+PelEwS/sQ+uaF2o2Tc23DyNw/M+wfbOufrCxoyd0vH/Bu09Aqzt8t5gAJbCLJ8tk+HC6U39ofHVsg0gKjnh7YRZX4cYZA2yO7QOhVQu7xgkrSxSQ=
References: <20041030224003 dot 71B7C51D45B at lists dot realsoftware dot com> <E95F5DDD-2B1E-11D9-A6F5-000393921CD4 at xs4all dot nl> <772953130410311000792ceed4 at mail dot gmail dot com> <2B31C4C7-2B69-11D9-A921-003065E4350E at xhtmlsoft dot com>
Hi Sven,

I tried putting "searchfield.setfocus" directly into the activate
event.  That didn't work.  So I tried putting a timer in, period =
500, action = "searchfield.setfocus".  In the activate event, I then
put "activator.mode = 1".  This also did not work.

Thanks,

Dave

On Sun, 31 Oct 2004 19:17:48 +0100, Sven E Olsson
<svenerik at xhtmlsoft dot com> wrote:
> 
> 
> 
> On Oct 31, 2004, at 19:00, Dave wrote:
> 
> > Interesting....
> >
> > I've discovered that the problem arises because the window is a global
> > floating window (type 7).  (If it matters, it also has a MacProcID of
> > 1104)
> >
> > But this doesn't make sense to me...  In the mousedown event, I set my
> > application to the foreground and then assign the focus to the
> > searchfield, using "searchfield.setfocus".  It works fine if I change
> > the window to type 0, but doesn't if it's type 7.
> >
> > Any ideas?
> >
> > Thanks,
> >
> > Dave
> >
> 
> Hi,
> I have not read this thread before, so I am not sure this fix your
> problem.
> 
> For my self I open an global floating window from the menu
> and then I have to put an timer that I activate in the floating window
> open event.
> And in the timer.action I put myEditfield.setfoucus
> Sven E

-- 
"You take the blue pill. The dream ends, you wake up in bed and
believe whatever you want to believe. You take the red pill. You stay
in Wonderland and I show you how deep the rabbit-hole goes. You take
the purple pill. The pain stops, you are relieved from heartburn, and
the lining of your esophagus returns."

There's no place like ~/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>