AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry
     R2 = main window handle
     R3 = sub-window handle
     R4 = flags :
           bit     meaning if set
           0     clip linked window to the left of the main window
           1     clip linked window to the right of the main window
           2     clip linked window above the main window
           3     clip linked window below the main window
           4     link scroll bars together
           5     link window to the left with offset of R5
           6     link window to the right with offset of R6
           7     link window to the top with offset of R7
           8     link window to the bottom with offset of R8
           5-30     reserved; MUST BE 0
           31     link is hidden
     When applicable (see bits 5-8) :
     R5 = X offset between left of main and left of sub-window
     R6 = X offset between right of main and right of sub-window
     R7 = Y offset between top of main and top of sub-window
     R8 = Y offset between bottom of main and bottom of sub-window

Will link two windows so the sub-window moves with the main window, the positioning of the sub-window is not determined by where the windows are unlike WimpExt_LinkWindows but instead is determined by the offsets you provide in R5 to R8.

Bit 4 will link the scroll bar offsets of both windows together, so that if you scroll either window the other window follows suit.

Under WimpExtension II you must specify how to link the window, normally you will set bits 5,7 and clear 6,8.

If the link is set to only one side instead of both, then the width (or height) of the window is used.

Provided by LinkedWindow

[sh-index] Back to list of manuals