BCX_COLORDLG function
Purpose: BCX_COLORDLG creates a color dialog box that enables the user to select a color which is returned as a COLORREF value specifying an RGB color.
Syntax: RetVal% = BCX_COLORDLG([DefaultColor][, hWndParent]) Parameters:
|
Example:
DIM RESULT$, i i = BCX_COLORDLG RESULT$ = "RED = " & STR$(GETRVALUE(i)) & CRLF$ RESULT$ = RESULT$ & "GREEN = " & STR$(GETGVALUE(i)) & CRLF$ RESULT$ = RESULT$ & "BLUE = " & STR$(GETBVALUE(i)) & CRLF$ MSGBOX RESULT$
GETRVALUE function
Purpose: GETRVALUE returns an integer containing the intensity value for the red component of a red, green, blue(RGB) value.
Syntax: RetVal% = GETRVALUE(ColorRef%) Parameters:
|
GETGVALUE function
Purpose: GETGVALUE returns an integer containing the intensity value for the green component of a red, green, blue(RGB) value.
Syntax: RetVal% = GETGVALUE(ColorRef%) Parameters:
|
GETBVALUE function
Purpose: GETBVALUE returns an integer containing the intensity value for the blue component of a red, green, blue(RGB) value.
Syntax: RetVal% = GETBVALUE(ColorRef%) Parameters:
|
RGB function
Purpose: The RGB function returns a COLORREF value calculated from the red, green and blue arguments passed to the function.
Syntax: RetVal% = RGB(red%, green%, blue%) Parameters:
|