×
Namespaces

Variants
Actions
Revision as of 10:55, 30 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A color picker in Symbian

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: giridharn (16 May 2007)
Last edited: hamishwillee (30 Jul 2012)
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();
 
}

See the full example.

"Jfpowiah(ColorGrid).zip" File:Jfpowiah(ColorGrid).zip

This page was last modified on 30 July 2012, at 10:55.
36 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×