Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:05, 16 May 2007.

A color picker in Symbian

From Forum Nokia Wiki

TBool noneExist = EFalse;
 
	TBool noneChosen = EFalse;
 
	TRgb colour = KRgbDarkGray; 
 
	CArrayFixFlat<TRgb>* colours = new(ELeave) CArrayFixFlat<TRgb>(6);
 
 
	colours->AppendL(KRgbBlack);
 
	colours->AppendL(KRgbDarkGray);
 
	colours->AppendL(KRgbRed);
 
	colours->AppendL(KRgbSymbianOrange);
 
	colours->AppendL(KRgbBlue);
 
	colours->AppendL(KRgbWhite);
 
	colours->AppendL(KRgbCyan);
 
	colours->AppendL(KRgbYellow);
 
	colours->AppendL(KRgbGreen);
 
 
 
	CAknColourSelectionGrid *d = CAknColourSelectionGrid::NewL( colours, noneExist, noneChosen, colour);
 
 
	if(d->ExecuteLD())
	{
	///Here you get the selected color..this you can use in your draw method.
	//selectedColor = colour;
 
	DrawNow();
 
	}
Related Discussions
Thread Thread Starter Forum Replies Last Post
question about JSR-179 will8552 Mobile Java General 5 2006-11-30 04:56
Symbian S60 and MS SQL SERVER biri1983 Symbian Networking & Messaging 1 2008-03-03 12:50
Masking effect not working in symbian 9.1 mailkamlesh General Symbian C++ 8 2006-11-17 04:46
Incorrect icon color? tinytoon General Symbian C++ 5 2005-03-09 17:12
Text Field Border Color Asif Nazir Symbian User Interface 2 2008-02-07 11:32
 
Powered by MediaWiki