Re: [Win32Lib] scroll a window with text?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Could the person who contributed the procedure
"setWindowScrollRange" to Derek for Win32Lib
(or anyone else who might know),
explain what exactly to use for the "pageSize" parameter?

The "setWindowScrollRange" procedure is defined thusly:
global procedure setWindowScrollRange(integer id, integer typeScroll,
integer min,
integer max, atom pageSize)
    -- Martin : sets scroll range for window scrolbar
    -- type idenitifies scrollbar -
    --           SB_HORZ : window horizontal sb
    --           SB_VERT : window vertical sb
    --           SB_CTL  : control (same as setScrollRange)
    --    (maybe replace this with setHScrollRange, etc.)
    -- pageSize specifies size of one page (allows set size of proportional
scrollbar)


Alternatively, is it possible to use "global procedure setScrollRange" to
set the scrollbars' ranges for a window?  It looks like the code for the
procedure makes it possible, but I don't know how to involve & distinguish
horizontal & vertical scrollbars; I see "lMsgCode = SB_VERT" & its sibling
in the code for "if the control is a window", but I can't see how they are
presented or made available to the procedure.

tia,
Dan Moyer

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu