Path: utzoo!utgpu!utfyzx!oscvax!jan From: jan@oscvax.UUCP (Jan Sven Trabandt) Newsgroups: comp.sys.amiga Subject: help: proportional gadgets Message-ID: <585@oscvax.UUCP> Date: Sat, 20-Feb-88 19:33:58 EST Reply-To: jan@oscvax.UUCP (Jan Sven Trabandt) Distribution: na Organization: Ontario Science Centre, Toronto Lines: 38 Howdy howdy. (I forgot this one in my last posting) According to the Intuition manual, in their example for a proportional gadget(vertical) they say: suppose a window shows 5 lines of a (max) 15 line file then set the VertBody to 0xFFFF / 3 = 0x5555 so that the auto-knob fills one-third of the container. This it does. However, clicking on the container, which is supposed to advance the VertPot by VertBody (ie 0 => 1/3 => 2/3 in real terms), causes the VertPot to effectively go 0 => 1/2 => 1 as if the 5 lines in the window showed part of the 4/3 of the file Did things change or am I just enterpreting things wrong. The upshot of this is that I have a similar situation: my window shows (say) 10 lines out of 100 possible. I set my VertBody to 1/10 of 0xFFFF but I get a similar thing happening as above. i.e. The VertPot goes all the way to 1 (0xFFFF) and thus tells me to display the 11th 1/10 of my lines [lines 101-110]. What should I be setting my VertBody to, or how can I compensate for this? (I also want to be able to take the VertPot value and figure out which line is supposed to be at the top of the window, and I want clicking on the container (not the knob) to advance the VertPot 1/10 of 0xFFFF properly). This is happening in a SMART_REFRESH window. Thanks in advance, Jan Sven. -------------------------------------------------------- "Violence is the last resort of the incompetent" - Hari Seldon, 'The Foundation Trilogy' (Isaac Asimov) Mind like parachute - function only when open! Jan (Jan, from Amsterdam) no-hyphen Sven Trabandt ...!{allegro,ihnp4,decvax,pyramid}!utzoo!oscvax!jan