Top Document: Motif FAQ (Part 5 of 9) Previous Document: 133) TOPIC: TOGGLEBUTTON WIDGET Next Document: 135) Can I customize XmToggleButton to use my own indicator graphic See reader questions & answers on this topic! - Help others by sharing your knowledge toggle buttons? Answer: Use the XmToggleButton widget, setting XmNindicatorOn to False and XmNshadowThickness to 2. Also set XmNfillOnSelect to True. Otherwise, the background color of the button will not stay in the "armed" state. In Motif 1.2 (and later), if you specify a XmNselectColor and set XmNindicatorOn to False, then you need to set XmNfillOnSelect to True. XmNfillOnSelect is not necessary if you are not setting a XmNselectColor. Glenn McMillen, mcmillen@meadow.mdso.vf.ge.com and Ken Lee User Contributions:Top Document: Motif FAQ (Part 5 of 9) Previous Document: 133) TOPIC: TOGGLEBUTTON WIDGET Next Document: 135) Can I customize XmToggleButton to use my own indicator graphic Part1 - Part2 - Part3 - Part4 - Part5 - Part6 - Part7 - Part8 - Part9 - Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: kenton@rahul.net (Ken Lee)
Last Update March 27 2014 @ 02:11 PM
|
Comment about this article, ask questions, or add new information about this topic: