Einzelnen Beitrag anzeigen
Alt 13.10.2012, 09:42   #149
leecher
Moderator
GETCOL

E r g e b n i s / R e s u l t

Get an Open Access colour value

B e s c h r e i b u n g / D e s c r i p t i o n

The GETCOL function returns the current value of one of the 19
separate Open Access colours.

The primary use of this routine is seen as recording a colour value
before the SETCOL function changes it. In this way a developer might
record the user's current colour scheme and then change it completely.
When the program finishes, the colours can be reset to their original
values.

S y n t a x

Code:
value = ('GETCOL' , colour)
P a r a m e t e r

colour - The colour parameter selects the colour value to return.
There are 19 colours, numbered 0 to 18. They are -

0 Normal colour
1 Errors
2 Title
3 Prompt
4 Input fields
5 User 1 colour
6 User 2
7 Borders
8 WP normal
9 WP bold
10 WP underline
11 WP bold underline
12 WP italics
13 WP bold italics
14 WP underline italics
15 WP bold underline italics
16 Menu Items
17 Menu Bar
18 Chosen Menu item

R e t u r n s

An integer value corresponding to the colour scheme.

B e i s p i e l / E x a m p l e

Code:
attach 'SETUP'
put call('GETCOL' , 2)     ! prints the current value of the TITLE colour
detach 'SETUP'
Q u e r v e r w e i s / C r o s s R e f e r e n c e
SETCOL
leecher ist offline   Mit Zitat antworten