Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Jettah on January 13, 2004, 09:58:21 PM

Title: Retrieving information from a SCROLLER-gadget
Post by: Jettah on January 13, 2004, 09:58:21 PM
Hi,

I'm (there we go again!) experiencing slight troubles while trying to retrieve the position of the slider of a scroller gadget.

The next piece of code applies:
{WORD Position;
 GetAttr(SCROLLER_Top, gad, (ULONG *)&Position);
}

All I get is a value in Position of zero, whatever the real position of the slider.

But trying to retrieve in a similar way the values of SCROLLER_Total yields zero too, while it has been set ,(using SetGadgetAttrs()) and visibly been positioned correctly to that value, to something like 72.

Where am I blundering this time?

Regards,

Tjitte