TristateCheckbox

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

TristateCheckbox

Postby poregan » Wed Mar 12, 2014 8:40 am

Is is possible to easily adjust the color of the value displayed within the tristate checkbox e.g. the tick to indicate checked or the block square to indicate mixed.

I have a requirement to change this color but obviously the likes of background and foreground setting on the checkbox are only affecting the outside of the checkbox rather than the inner symbol as described above.

Any suggestions?
poregan
 
Posts: 11
Joined: Tue Dec 03, 2013 8:42 am

Re: TristateCheckbox

Postby JIDE Support » Wed Mar 12, 2014 8:49 am

Not easy to get a consistent solution. The icon is actually painted by Windows's native code if you are on Window. If you paint the icon yourself, then you can do whatever you want but that's clearly not what you want to do. All the source code is at the jide-oss on the github. TristateCheckBoxIcon is the icon class for all other L&Fs while WindowsIconFactory defines the icon for the Windows L&F which delegates to the native code. MetalIconFactory is for the Metal L&F which you can customize.
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 8 guests