Mac OS and Linux and Windows offers a great Color Selector tool where we can select a color in various ways, we can save them as favorites etc. This tutorial will show you how can we integrate system built-in Color Selector tool into our REALbasic application. Watch it, learn it, enjoy it!
Drag and drop to Window a Rectangle Control.

Go to code editor and in Rectangle1 Function MouseDown () enter this code. Now when the user selects a color it will be automatically in our Rectangle Control.
1 2 3 4 5 6 | Dim b as Boolean Dim c as Color c = Rectangle1.FillColor b = SelectColor(c, "Select a Color") // displays the color selector Rectangle1.FillColor = c |
This works on Windows too…at least on XP.
Thx for testing Bill
I didn’t know that Windows has got something like Color Selector.