Re: button problem and others
Derek,
Neat... to give focus to a particular control was exactly what I
needed....thanks.
george
----- Original Message -----
From: "Derek Parnell" <ddparnell at bigpond.com>
To: "EUforum" <EUforum at topica.com>
Subject: RE: button problem and others
>
>
> George Walters wrote:
> >
> >
> > I was having problems (memory trap, see above note) and a dead button.
> > Here's come code snipit
> >
> > procedure init(integer self, integer idType, sequence args)
> > setFocus (idCust)
> > end procedure
> > setHandler(Screen, w32HKeyPress, routine_id("keyPressProcessB"))
> > setHandler(Screen, w32HKeyDown, routine_id("keyPressProcessA"))
> > setHandler(buttonId, w32HClick, routine_id("pickCust"))
> > setHandler(Screen, w32HActivate, routine_id("init"))
> >
> > WinMain(mainWindow,Normal)
> >
> > I was using w32HGotFocus instead of w32HActivate and having these
> > problems.
> > changing to w32HActivate made the problems go away... can anyone
> > explain? I
> > thought that either should work, although Activate would be the better
> > choice.
>
> Sorry for a slow response. I'm attending a conference intersatte and
> just managed to grab a few moments now.
>
> If what you were trying to do was to give focus to a specific control
> when the window is first opened, the simpler way to do it is ...
>
> WinMain({mainWindow, idCust}, Normal)
>
> No need for a w32HActivate trap or init() routine. I think this is
> documented.
>
>
> Also, the Activate event ONLY applies to Window controls and is fired
> off after the Window is opened. It does not work for the Screen control.
>
> --
> Derek
>
>
>
> TOPICA - Start your own email discussion group. FREE!
>
>
|
Not Categorized, Please Help
|
|