Back to Contents Previous Next
14. Colour picker
PROCwimp_opencolourpickerrgb(dialoguetype%,red%,green%,blue%,n-one%,x%,y%)
Requires RISCOS Version 3.50 or higher. Opens the colour picker window with the initial colour set by the values of red%, green% and blue%, which are in the range 0-255.
The window will open in the ‘RGB model’ (which means the set colour
values will actually be shown as percentages in the range 0-100%).
x%/y% give the screen OS-unit coordinates of the top left corner of
the opening window.
dialoguetype% determines how the window will close:
If dialoguetype%=0 the window will be closed by specific action e.g. selecting its Close icon.
If dialoguetype%=1 the window will close if the mouse is clicked outside the window.
If none%=0 the ‘None’ button will be disabled.
If none%=1 the ‘None’ button will be enabled and deselected.
If none%=2 the ‘None’ button will be enabled and selected.
(Note: the window also closes when the ‘OK’ or ‘None’ button is selected.)
PROCwimp_opencolourpickermodel(model%,dialoguetype%,value1,val-ue2,value3,value4,none%,x%,y%)
Requires RISCOS Version 3.50 or higher. Opens the colour picker window with the ‘colour model’ set by model% and the initial colour set by the values of value1, value2, etc.
model%=0 for ‘RGB model’, 1 for ‘CMYK model’, 2 for ‘HSV model’.
value1, value2 etc. are in range 0-100%, except that value1 is
in the range 0-359 degrees (the ‘colour angle’ in HSV) when model%=2.
value4, which must always be present, is ignored unless model%=1 (’CMYK model’).
x%/y% are screen OS-unit coordinates of top left corner of window.
If dialoguetype%=0 the window will be closed by specific action e.g. selecting its Close icon.
If dialoguetype%=1 the window will close if the mouse is clicked outside the window.
If none%=0 the ‘None’ button will be disabled.
If none%=1 the ‘None’ button will be enabled and deselected.
If none%=2 the ‘None’ button will be enabled and selected.
(Note: the window also closes when ‘OK’ or ‘None’ button is selected.)
PROCwimp_opensubmenucolourpickerrgb(red%,green%,blue%,none%, x%,y%)
Requires RISCOS Version 3.50 or higher. Opens the colour picker window as a ‘sub-menu’, with the initial colour set by the values of red%, green% and blue%,
which are in the range 0-255.
The window will open in the ‘RGB model’ (which means the set colour
values will actually be shown as percentages in the range 0-100%).
x%/y% give the screen OS-unit coordinates of the top left corner of
the opening window.
If none%=0 the ‘None’ button will be disabled.
If none%=1 the ‘None’ button will be enabled and deselected.
If none%=2 the ‘None’ button will be enabled and selected.
As with any sub-menu, the window will close if the mouse is clicked outside the window or when the mouse pointer retraces the opening route. (Note: the window also closes when the ‘OK’ or ‘None’ button is selected.)
PROCwimp_opensubmenucolourpickermodel(model%,value1,value2,va-lue3,value4,none%,x%,y%)
Requires RISCOS Version 3.50 or higher. Opens the colour picker window as a ‘sub-menu’, with the ‘colour model’ set by model% and the initial colour set by the values of value1, value2, etc.
model%=0 for ‘RGB model’, 1 for ‘CMYK model’, 2 for ‘HSV model’.
value1, value2 etc. are in range 0-100%, except that value1 is
in the range 0-359 degrees (the ‘colour angle’ in HSV) when model%=2.
value4, which must always be present, is ignored unless model%=1 (’CMYK model’).
x%/y% are screen OS-unit coordinates of top left corner of window.
If none%=0 the ‘None’ button will be disabled.
If none%=1 the ‘None’ button will be enabled and deselected.
If none%=2 the ‘None’ button will be enabled and selected.
As with any sub-menu, the window will close if the mouse is clicked outside the window or when the mouse pointer retraces the opening route. (Note: the window also closes when the ‘OK’ or ‘None’ button is selected.)
Top of page Back to Contents Previous Next