Article View: comp.sys.amiga.tech
Article #703Re: Create Port and Simeple refresh problems...
From: Bryan Ford
Date: Sun, 30 Jul 1989 00:31
Date: Sun, 30 Jul 1989 00:31
31 lines
1913 bytes
1913 bytes
In article <3856@cps3xx.UUCP> porkka@frith.UUCP (Joe Porkka) writes:
>Another simple question: Is it Okay to have more than one boolgadget
>pointing to the same Intui(Image|Text|Border) ?
In most cases it's fine. However, don't use the same Image structure for more
than one Prop gadget. This is because Intuition changes the offsets of the
Image structure to reflect the position of the thumb. In AUTOKNOB props,
Intuition modifies the entire structure.
I discovered this a while back when I was doing a color requester with 3
sliders (R,G,B). I tried using the same Image structure for all three.
It's a very interesting effect...you should try it just for fun. When you
move one of them, all three get internally updated (because they are all in
the same Image structure), but the other two don't get redrawn on the
screen. So, if you go and click on another propgadget in the same relative
position as you just moved the first one to, you'll get the thumb no matter
where it "seems" to be. As I said, try it...it's hard to explain.
BTW, if you use custom imagery for your Prop gadgets, you can use the same
ImageData for all of them, just create separate Image structures that point
to the same ImageData.
Bryan
--
_______________________________________
_/ Bryan Ford - bryan@geo-works.uucp \_
_/ ..!utah-cs!caeco!i-core!geo-works!bryan \_
/ ..!uunet!iconsys!caeco!i-core!geo-works!bryan \
\_____________Author: Chroma Paint______________/
Technical Details
Message-ID:
<2033.AA2033@geo-works>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!iconsys!caeco!i-core!geo-works!bryanReferences:
<3856@cps3xx.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!iconsys!caeco!i-core!geo-works!bryan From: bryan@geo-works.UUCP (Bryan Ford) Newsgroups: comp.sys.amiga.tech Subject: Re: Create Port and Simeple refresh problems... Message-ID: <2033.AA2033@geo-works> Date: 30 Jul 89 00:31:18 GMT References: <3856@cps3xx.UUCP> Followup-To: comp.sys.amiga.tech Lines: 31