Welcome, Guest. Please login or register.

Author Topic: Retrieving information from a SCROLLER-gadget  (Read 994 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JettahTopic starter

  • Full Member
  • ***
  • Join Date: Nov 2003
  • Posts: 115
Retrieving information from a SCROLLER-gadget
« 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
Sometimes I wish I was Mt Vesuvius: laying on my back in the sun while smoking a bit and everybody seeing me would say: \\"Look! He\\\'s active!\\" (author unknown to me)