Hi all,
Does anybody know how I can get the PickColor control to start-up at a
specified position? The following is my code but it doesnt seem to
work at all. Appreciate for all help given. Thanks

------------------------------------------
bool CDialogs::PromptObjectTimebarColor( ::CColor& ioColor )
{
bool theUserSelected = false;

::CColor theStateColor = ioColor;
CMRGBColor theColor = { theStateColor.GetRed( ) * 256,
theStateColor.GetGreen( ) * 256, theStateColor.GetBlue( ) * 256 };
NPMColor thePMColor = { NULL, theColor };

// Initialize the color picker
NColorPickerInfo theInfo;
theInfo.theColor = thePMColor;
theInfo.dstProfile = NULL;
//theInfo.placeWhere = kCenterOnMainScreen;
theInfo.placeWhere = kAtSpecifiedOrigin;
theInfo.dialogOrigin.v = 0;
theInfo.dialogOrigin.h = 0;
theInfo.pickerType = 0;
theInfo.eventProc = NULL;
theInfo.colorProc = NULL;
theInfo.colorProcData = 0;

short theR;
short theG;
short theB;

// Run the color picker and if there wansn't an err, then set the
color
if ( ( NPickColor( &theInfo ) == noErr ) && ( theInfo.newColorChosen )
)
{
theR = theInfo.theColor.color.rgb.red / 256;
theG = theInfo.theColor.color.rgb.green / 256;
theB = theInfo.theColor.color.rgb.blue / 256;
ioColor = ::CColor( theR, theG, theB );
theUserSelected = true;
}
return theUserSelected;
}