[comp.sys.amiga.programmer] GadTools SCROLLER_KIND Gadgets

Scott_Velez@mindlink.bc.ca (Scott Velez) (06/09/91)

> 
> Org.  : DIALix Services, Perth Western Australia
> Person: John Verhoeven
> 
> ...
> 
> I then use GT_GetIMsg & GT_ReplyIMsg in my main loop to receive IDCMP
> messages
> from these gadgets.  This all works fine, I receive the apropriate messages
> but for the Scroller gadget, How do I get the new values from the
> Proportional
> gadget for the VertPot/HorizPot values from the Gadget address given in the
> IntuiMessage.

The VertPot/HorizPot position is contained in the 'Code' field of the
IntuiMsg structure. When you GT_GetIMsg(), it will be scaled somewhere between
ZERO and the 'GTSC_Total' you set when creating the SCROLLER_KIND gadget.

> 
> I need this info So I can scroll through a list of names in a panel next to
> the
> slider.  I can't use a LISTVIEW gadget, beacuse I need to be able to select
> multiple choices from the list, not just a single choice.

You will have to do all your own multi-select stuff. I don't believe
gadtools.library supports this.

Scott
--
---------------------------------------------------------------------
Michael Scott Velez               "Give me a burger, fries and
BIX: mvelez                        some desert."
Scott_Velez@mindlink.bc.ca         "Give me money."

johnv@DIALix.oz.au (John Verhoeven) (06/10/91)

I have been using the V2.x GadTools library to put up gadgets into a window.

I have created a few string gadgets, some button type gadgets and a Scroller
kind gadget with a proportional gadget & up/down arrows.

I then use GT_GetIMsg & GT_ReplyIMsg in my main loop to receive IDCMP messages
from these gadgets.  This all works fine, I receive the apropriate messages
but for the Scroller gadget, How do I get the new values from the Proportional
gadget for the VertPot/HorizPot values from the Gadget address given in the 
IntuiMessage.

I need this info So I can scroll through a list of names in a panel next to
the slider.  I can't use a LISTVIEW gadget, beacuse I need to be able to select
multiple choices from the list, not just a single choice.

Any suggestions?