How to set the text color of Combobox?
-
How to set the text color of Combobox?
-
@CatABC
You can do it with LookAndFeel.Here's a snippet. :-)
HiseSnippet 973.3ocsVssahbCF1CjYUY5ock165MS4hUjJDBBjMrJppaBIzE0PBpPW06VY77OLt3wFMimPPU4UoOZ8YnuAs+dFNVnYYQpbQh+O4uO6+Cd5EoXPbrJhX4LX1DfX8E18mI0AsBnbIoyUDquxtKMVCQtYptb1DZbL3Qrrx+iFEVENhj96u9gKoBpjAqTQHuWwYvM7Ptdk1du8m3BQapGLfGtl2MdaGlR1RITIHexaWkLgxFSGA2RMtkyl7NZb.w56rqCdmzrI8zF0qyZ9llryXzl.q1vypdB02qdSvanWiSaPIVO6ZOtVE0WS0PLtoWp7l0OPMUlAv64w7gBvHTizGQNSMoU.W30awkSLgXcTuUWU4ytpdocWtGeo9UWYOO0f6pHV+RyJ2SQoZeBTxZMJcTFkdgceVDehdkECe9b6NRLC5Swby5TIyWRtuIucKE5gTWIjNFZGgBKinzqqVsrK9miO2wAyOwZWA0286cWDBKBvSxMJFUbiRM9BoWa.DkV4dKU3P0kpGpsVPi.MpdhRhBkJtzihlnVJUIFzasuH3Fmv+UIBFwMklsSjLMWIKUzKhNsmZRxjtfLoiFBKV10eg0QkcUC+sic9cmB2SiboHcP4JTj+m6TvovnJ9Xc4EBQorZv3JCEXAHhFZJ1PXi1kFmFv0PlQCrWH3ijf2.3AcIy1pwEkcokcKxvyXD3YNaHJb+Ty73Ab1Xv6XmBHe1A1K29cB9PQxBi6O3OtA9uiOJ.CKPCdtu5Ute6dwpYfPnl9eRKDoCfUOd74KRRtJ4sJMbmrTZdx4QG2+sIe+cZyTYEoDBHZmlMiZhdp.KISBGBQkcumZtaW3H1ZsY+5y1u9UVVg9ZNpjcjb8cSf4xsUBOSenY81c2j4cJl974LDcUm1k+74c4KZTHbOSS9x9FR5QX8IyjeoyUTMcwlg6Kh0DHRyMGIqqf6wwzYiPJXeEDOVqlj567VT7XumP+.wx15OQPmYV7G3hPZpt73RrhNDw6qsuSBNClpbFDDA.9hvVCxvQnJuDAUu4bUyKNyMfIuMFlYFXIi45Yqet+DF1V8IG1tuT7E183ZVvt4XtcvQLk7+AGm+D0WZesuOvzqH3Q1s+0C88nOB7+rJQyki5R0QbSJ+1jv93TAFfnKkfH1TFjyTZmIW0HatA5CRuTg+F+M2XMir0bi0VXDKlXQpOvxZHLOB9YoZPNIS+HgB3Wqfxta0Cf0g3axefw1bq1JvSNz.qenA13PC7zCMvWenAd1gFXyOdflOY5hDsJLqsgP5165zYVVVWKoXEXZ0J4e.LmIClB
If you want to change the text color of the combo box itself, you can define this in the properties under “textColour”. Here is a screenshot:
-
@CatABC
Here is a snippet where I did everything via LookAndFeel. :-)HiseSnippet 1079.3ocuV0uahbCD2aR1qGa+5No9.3xebhzRQPH4BmNU0KeQOTyGnC5oJEEcxXOv5FiMZWSHnpH0mj9n0mg9FzNdWVfzPSHn1xej346edlYmwMiLbHN1DQ7BZOd.P79D+Vi01vCBYRMowgDuOy+DVrEhnor1e7.VbLHHddq+8NFd41fj76O9t8YJllCyXQHu2H4vwx9R6LtMeyOHUp5LAzV1eNs29MM3F8AFkYHhm08KSFv3Wx5AmxbpslO4sr3Ph2W4WEDaUqFamsqVkW6U036xY0.dkN6VdKVWQ0ZfniX6c1lQ7dxQBo0D0xxrPL5z8MhwsBMizoA38xXYGE3HpPZgQNkM4fPoRzLK4DSHdazbVpZ8zT0W3ehTHmxeVJ6YIBnyrX9jl2Z2Gjp7Hfj2bPZiTH8b+V7H4.6LIN77w9MzXErKCqMyCkTcIq8Q99GXPMz1R8YWB0iPhoVT3kkKWjh+YyWGDf0mXKUw5R+VZlI7H.uIGa3L0wFyk6oE0APUXl5GX52wru45JyYTOvhrGXzHQg7S0HuypoTkhA6c7KFbmRA3+KEA8jtdy5C0bqznKjWDwFkYe9hztYB5UjZ57yaF7KA4thEQYHTP5RLD6uNHWPtdk5h8j6oTER6+hK0QgMeXjPQwNv53NU3nPoE1bNKaGIY5dJnv4ryKeA8qoUbYM14URO6Nt0EzugVI8bU24sJeQQ5ILaXIq4cLA5f3BuByyY90cW1SI6oAQa3ZaAGfs3AzAEo44XlKBD4S0V1MQbn4JHZyfb30bAWowfRYF4LXgWJzaIxlZ6+1WpTOu7WqaBt4AJ0MMCFN3DPOrgE5++Q8dkpJx31R9kX18epvL08KL3cTCyD9XxcyG+2J6EhlEZAA8Euf9kKEpVx1kGcEMqHQM5SMV3Lcgj5TvMAz+tntcWnL2TjHiRAQKTrasRz8YXA8v9cfnhzqXtbalh3XzaOa9IK2rYd5Ps4Tznank1yF.SnqaTB2LW246NImLYpnal9DDhpZSln+rISzyFpQjB2.8oyHIIWg42BS9wFGxrrLmg9Ei0.HxJcWIuCgqvUxoqKx4eHDeo0LHQ2IiiIdOcIC80DOeueGC5X2geCOzmkvac7H1Q2Gi2m6elFBZOxDzNLB.xHovF5z4WQcBAWOoihl7vf6rOC2jZDCUL6sWu5d3wDAXc8V6zb6szwR634SIOhctku2ctKKDeteSokGtXLt1BvHVs9u.iSdoxm5eT2t.2NCfa3W+mV0mk7.g+clgVotGtCHR55FNcX+V3.CNfQWqAUrqdulqqOktri1kAZAZQBweh+lHrhi1ahvJYBw9Ldj4C7zuUbuE5oIbPLoSdqXN7QqHM8Nedfsn3Sy9.meaWcGC2ZUMr5pZ31qpg6rpF9xU0vcWUCq8vF5d47dCsl9oe1PHmz7njwYddGoYXGXR2J4u7zdiFO
-
@Oli-Ullmann cool,I don't know what I did wrong, my
g.setColour();
didn't work, but I deleted all the code and rewrote it according to the code snippet you gave, and it worked. I want to give you a hug to express my endless gratitude.
-
@CatABC is it a normal combobox or a custom settings one?
-
@mmprod They are universal, you just use LAF
-
@CatABC
No problem! :-) We are all here to help each other. :-) I'm glad it worked!