AmigaActive (782/1728)

From:Steven
Date:15 Jun 2001 at 05:52:15
Subject:AWNPipe GUI Problem

Hi all,

Having read this little tutorial in AA, I thought I would have a quick
bash at doing a GUI with AWNPipe, however I've hit upon a small
problem that maybe someone here would be able to help with.

I have 2 sliders and 2 int gadgets. Ideally I'd like to connect them
(Hours slider to Hours int gad, and Mins slider to Mins int gad),
however the docs are a bit vague on how to accomplish this. So I tried
to just get the value when the gadget was hit, and set the
corresponding gadget to that value. That was fine if the Slider was
moved...the int gadget is updated fine, however if I try to type a
value into the int gadget, the slider doesnt get set to the correct
value. I'm using this line of code to change the slider:

WHEN ID=HoursIntGad
THEN DO
Hours=WORD(Event, 3)
CALL SendToPipe('id 'HoursSlidGad' s='Hours'')
END
END

Now although the value in Hours is correct, the slider always gets set
to 0. I've even tried putting a value like s=10, but it still always
ends up as being set to 0.

Any help would be appreciated as I cant see why it wont work.

Cya,
Steven.

Quote carefully and read all ADMIN:README mails
To unsubscribe mailto:amigactive-unsubscribe@yahoogroups.com
Anyone sending unsubscribe messages to the list will be SHOT!

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/