Ask a Question related to Mac Programming, Design and Development.
-
shannen #1
Setting PickColor.dialogOrigin
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;
}
shannen Guest
-
setting up RDS
I have the Developer's Toolbox, for 6 days I tried to setup RDS in Dreamweaver CS3 with Coldfusion 8. I do not mean the install, but from the point... -
Setting Up PHP
I'm trying to setup PHP support on an small 2 station Intranet for development purposes. I'm using PWS under Win98 SE. I believe I'm experiencing a... -
Help w/ setting up ASP.NET pls.
I'm trying to set up ASP.NET on my Windows 2000 server w/ IIS 5 and MS ISA Server. Here's what I have done so far without any luck. Here's the... -
16 bit setting
hello, is there any settings are required for the projector done in 16 bit color depth. -
Setting Up A FTP
How do I setup a FTP from my computer as my IP address?



Reply With Quote

