Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
ColorPanel.GetColor
Queries current color.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| ColorPanel | 8.3 | Yes | No | No | No | No |
MBS( "ColorPanel.GetColor" { ; ReturnAsNumbers } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| ReturnAsNumbers | Pass 1 to return color as list of red, green and blue, e.g. "123¶234¶56" Pass 0 (default) for return as hex value, e.g. "7788FF". |
0 | Optional |
Result
Returns color or error.
Description
Queries current color.Returns color as hex values, e.g. FF0000 for red.
Examples
Query color:
Set Variable [ $c ; Value: MBS( "ColorPanel.GetColor" ) ]
If [ MBS("IsError") = 0 ]
Set Field [ Color Panel::Color ; "#" & $c ]
End If
See also
- ColorPanel.GetAlpha
- ColorPanel.GetColorName
- ColorPanel.SetColor
- ColorPanel.SetColorChangedEvaluate
- IsError
Example Databases
Blog Entries
Release notes
- Version 10.3
- Added ColorPanel.GetColorName function.
- Version 10.1
- Added alpha part for returning color from ColorPanel.GetColor and similar functions.
Created 13th June 2018, last changed 13th June 2018
ColorPanel.GetAlpha - ColorPanel.GetColorChangedEvaluate
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins