AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Header:     scrolllist.h

Syntax:     
extern _kernel_oserror *scrolllist_decode_position
(
unsigned int  flags,
ObjectId      window, 
ComponentId   scrolllist,
int           screen_x,
int           screen_y,
int          *relative_x,
int          *relative_y,
unsigned int *index,
unsigned int *column
);              

Purpose:     Function takes a pair of coordinates screen_x and screen_y (for example from a mouse click) and calculates the corresponding coordinates relative_x and relative_y within a scroll list. Also writes out the index of the list item at that location (UINT_MAX if before first, UINT_MAX-1 if after last) and the column number (UINT_MAX if it cannot be determined). Requires TextGadgets 0.89.

[sh-index] Back to list of manuals