Core Function ColourDialog
From Sputnik Wiki
				
				
				(Difference between revisions)
				
																
				
				
								
				 (Created page with "<pre> ColourDialog( ) </pre>  === Description ===  Allows the user to select a colour and allows you to get the RED, GREEN, BLUE etc values.  === Parameters ===  None  === Return...")  | 
		|||
| Line 15: | Line 15: | ||
Success: Returns array with details.  | Success: Returns array with details.  | ||
| − | Failure: Returns   | + | Failure: Returns null (the user pressing cancel also returns null).  | 
=== Remarks ===  | === Remarks ===  | ||
Revision as of 09:45, 15 October 2013
ColourDialog( )
Contents | 
Description
Allows the user to select a colour and allows you to get the RED, GREEN, BLUE etc values.
Parameters
None
Return Value
Success: Returns array with details.
Failure: Returns null (the user pressing cancel also returns null).
Remarks
Example
$Value = ColourDialog(); if($Value) { my List ( $Red, $Green, $Blue, $Alpha ) = $Value; my $Colour = RGB($Red, $Green, $Blue); // Pack the colour for use in GUI etc println("Colour Red '$Red' Green '$Green' Blue '$Blue' Alpha '$Alpha' (RGB '$Colour')"); } else { println("No colour selected"); }