Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with GADGETUP and Gadtools!

0 views
Skip to first unread message

mrim...@beach.gal.utexas.edu

unread,
May 24, 1992, 10:02:55 PM5/24/92
to

Is there anyway to get the Amiga to generate a GADGETUP and recognize the
string in the gadget whether or not the user presses enter, tab or shift-tab?
It seems like a user should be able to switch between string gadgets and the
computer be able to recognize the entered string.

Any help would be greatly appreciated!

R. Luebbert

Peter Cherna

unread,
May 26, 1992, 11:05:59 AM5/26/92
to
In article <1992May24...@beach.gal.utexas.edu> mrim...@beach.gal.utexas.edu writes:
>
>
>Is there anyway to get the Amiga to generate a GADGETUP and recognize the
>string in the gadget whether or not the user presses enter, tab or shift-tab?
>It seems like a user should be able to switch between string gadgets and the
>computer be able to recognize the entered string.

Um, are you setting the GA_RelVerify (aka. GFLG_RELVERIFY) property
for the gadget? Are you setting IDCMP_GADGETUP for your window. You
should hear GADGETUP messages whenever the user presses enter, tab, or
shift-tab.

Unfortunately, Intuition provides no easy way to tell if the user deactivated
your string gadget by clicking elsewhere...

>R. Luebbert

Peter
--
Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter pe...@cbmvax.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"This posting is unually long because I lacked the time to make it short."

Paul Kienitz

unread,
May 29, 1992, 3:01:41 AM5/29/92
to
> Is there anyway to get the Amiga to generate a GADGETUP and
> recognize the string in the gadget whether or not the user presses
> enter, tab or shift-tab? It seems like a user should be able to
> switch between string gadgets and the computer be able to recognize
> the entered string.

The better approach is to ignore string GADGETUP messages unless you
want to automatically activate the next gadget when the user presses
return, and just check the contents of all the string gadget buffers
when everything is done (like, somebody clicks "Okay" or something).

Even before tab cycling, one could not assume any one-to-one
relationship between string gadgets getting changed and GADGETUP
events. Thus we got programs where your string gadget editing would
be discarded if you clicked another gadget instead of hitting return.

mrim...@beach.gal.utexas.edu

unread,
Jun 10, 1992, 3:32:48 PM6/10/92
to
This is a repost as I never got any response to the original post:

In what buffer is the displayed string in the gadget kept? All I get if
the user has not pressed return from the gadget string pointer is the old value
if the user has not pressed return or tab...

Thanks!
R. Luebbert

Doug Johnson

unread,
Jun 12, 1992, 3:23:44 PM6/12/92
to
In article <1992Jun10...@beach.gal.utexas.edu> mrim...@beach.gal.utexas.edu writes:
>
> This is a repost as I never got any response to the original post:
>
>In article <paulk...@terapin.com>, pa...@terapin.com (Paul Kienitz) writes:
>>> Is there anyway to get the Amiga to generate a GADGETUP and
>>> recognize the string in the gadget whether or not the user presses
>>> enter, tab or shift-tab? It seems like a user should be able to
[...]

>
> In what buffer is the displayed string in the gadget kept? All I get if
>the user has not pressed return from the gadget string pointer is the old value
>if the user has not pressed return or tab...
>
>Thanks!
>R. Luebbert

Have you set RELVERIFY in the Gadget.Activation field? Do you have a
separate buffer for each Gadget's StringInfo.Buffer? The RKM (or is it the
1.2 Enhancer Manual ?) states that the buffer is updated _each time the
user presses a key_. I've never had this problem as described.

--

Doug Johnson * if (Great_Lakes.dioxins > 0.00000001)
Windsor, ON * cleanup();
Canada *

Paul Kienitz

unread,
Jun 13, 1992, 8:58:37 PM6/13/92
to
> In what buffer is the displayed string in the gadget kept?
> All I get if the user has not pressed return from the gadget string
> pointer is the old value if the user has not pressed return or
> tab...

Intuition acts directly on the buffer pointed to by StringInfo->Buffer.
The text displayed directly corresponds to the contents of this.
0 new messages