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:
Return Value:
|
Example:
DIM Result$, ColorRef% ColorRef% = BCX_COLORDLG Result$ = "COLORREF = " & STR$(ColorRef%) & CRLF$ Result$ = Result$ & "RED = " & STR$(GETRVALUE(ColorRef%)) & CRLF$ Result$ = Result$ & "GREEN = " & STR$(GETGVALUE(ColorRef%)) & CRLF$ Result$ = Result$ & "BLUE = " & STR$(GETBVALUE(ColorRef%)) & 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:
Return Value:
|
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:
Return Value:
|
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:
Return Value:
|
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:
Return Value:
|