home *** CD-ROM | disk | FTP | other *** search
- Path: xs4all.nl!not-for-mail
- From: yrozijn@xs4all.nl (Yvon Rozijn)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: ColorWheel
- Date: 18 Apr 1996 19:11:27 GMT
- Organization: XS4ALL, networking for the masses
- Message-ID: <4l644v$3jr@news.xs4all.nl>
- References: <4l0hl0$8lj@fizban.solace.mh.se>
- NNTP-Posting-Host: ztm04-20.dial.xs4all.nl
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Magnus Holmgren (cmh@lls.se) wrote:
-
- : I'm trying to use the colorwheel (and the gradientslider) in a program, but
- : I don't know how to use these gadgets properly.
-
- Use the ICA_TARGET,ICTARGET_IDCMP tag on both gadgets and listen for
- IDCMP_IDCMPUPDATE messages. msg->IAddress points to the gadget.
-
- : Also, must I use GetAttr to get the new color values in a IDCMP_MOUSEMOVE
- : message?
-
- Yes, assuming you have coupled them by using the WHEEL_GradientSlider tag,
- you can GetAttr() WHEEL_HSB from the colorwheel gadget. Don't try to get
- WHEEL_RGB because that won't work properly. Use ConvertHSBToRGB() afterwards
- if you need RGB values.
-
- --
- ___ _
- Q : | #| : \|/ http://www. : [_]_
- -<_>- Yvon : | ==| yrozijn@ : >WWW< xs4all.nl/ : === ) Amiga
- / \ Rozijn : `---' xs4all.nl : /|\ ~yrozijn : O 4000
-