 |
 |
Mac OS X Color Picker
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Is it possible to access the floating window color picker in Carbon? And for that matter, is it possible to access the color well control in Carbon?
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Does anyone know how to do this?
Now that I think about it, accessing the system Font panel would also be very useful.
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Apr 2001
Location: San Francisco, USA
Status:
Offline
|
|
I've got a color picker related question to tack onto this thread. Has anyone written an HTML custom color picker in Cocoa? Just a simple RGB picker that uses hex values would be nice. Bonus points for identifying "web safe" colors ala Photoshop. 
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
*bump*
Does anyone know about this stuff?
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status:
Offline
|
|
I wrote a quickie -- not polished at all -- Cocoa color picker a while back (one that shows hex values for RGB actually). They're not too hard to write, but I was having a really strange problem in that inside some apps it made the color picker window almost the full width of the screen, and wouldn't let me resize it down any. I haven't played with it much since. I'm not sure if this is an Apple bug or my problem. I ought to revisit it though.
Stone Design had a freeware application for the old MacOS X Server 1.2 that did much the same thing (better I'm sure) called Web Colors ( http://www.stone.com/WebColors/WebColors.html), but I don't think it's been updated for MacOS X.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Does anyone know if the font and color panel can be used in Carbon?
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Aug 2000
Location: the chair in front of my Mac
Status:
Offline
|
|
I don't think so.
Both relie on other Cocoa classes to get their jeb done.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
For the Colo(u!)r panel, there is a Carbon one which works just fine
As far as the Font panel goes, you'll have to construct your own, I think (yet another thing the Toolbox API failed to provide, I guess).
You will not be able to use the Cocoa ones in Carbon, I don't think. Especially not the font panel, as that is intertwined with the Cocoa text services.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Originally posted by Angus_D:
<STRONG>For the Colo(u!)r panel, there is a Carbon one which works just fine
As far as the Font panel goes, you'll have to construct your own, I think (yet another thing the Toolbox API failed to provide, I guess).
You will not be able to use the Cocoa ones in Carbon, I don't think. Especially not the font panel, as that is intertwined with the Cocoa text services.</STRONG>
Dang. I guess I'll have to wait until the Carbon API is improved by Apple.
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by graphiteman:
<STRONG>Dang. I guess I'll have to wait until the Carbon API is improved by Apple.</STRONG>
Why's that, then? Just use Cocoa! 
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Originally posted by Angus_D:
<STRONG>
Why's that, then? Just use Cocoa!  </STRONG>
Because I don't have a year to port my app ( Cranberry) to Cocoa from REALbasic.
I would if I could.
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Getting the CARBON colour picker is very easy in RB. I forget what the exact call is, but it's something like:
dim c as color
c = SelectColor()
or something equally simple. I can't be bothered to fire up RB and check, because I paid for 2.1.2 and don't want to pay another few hundred $$ to use their slow, bloated crap on OS X 
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
I just wanted to use the Cocoa one because it is much more astecially pleasing.
To get the carbon one:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
Dim B As Boolean, C As Color
B=SelectColor(C)
</font>[/code]
On a ccompletely unreleated subject, do you know how to set and clear the little dot in the close box of a window to indicate the document is changed?
[edit: bad ubb code]
[ 08-25-2001: Message edited by: graphiteman ]
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
Originally posted by graphiteman:
<STRONG>On a ccompletely unreleated subject, do you know how to set and clear the little dot in the close box of a window to indicate the document is changed?</STRONG>
From RB, no idea. There probably isn't a call. You could find the toolbox call to do it and pass a window.windowRef to it, though.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status:
Offline
|
|
Any idea what that toolbox call would be, or at leat where it would be located in the carbon dcumentation (Window manager, for instance)?
|
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|