📄 newtoggleb.doc
字号:
Welcome to the NewToggleButton widget for Motif!This is version 0.91b.PLEASE READ THE FOLLOWING INFORMATION CAREFULLY!QUESTION:- Can't your customers tell the difference between a square shaped and a diamond shaped indicator toggle buttons usually display?- Or can't your customers distinguish when an indicator is in the "on" state?- Can't your bear the toggle button's outer appearance?ANSWER:Just get rid of XmToggleButtons and use the free XmNewToggleButton widgetclass instead. This new widget class offers all the things theXmToggleButton widget class provide together with a much better look.Now your customers easily recognize (and remark!) the difference betweentoggle buttons used for either exclusive or multiple choice.One big mistake the OSF made was to use rectangular shapes for bothselection modes (XmONE_OF_MANY, XmN_OF_MANY). This results in a somewhatcumbersome recognizing process on beside of the user - not a good designgoal with graphical user interfaces that are always claiming theopposite.Thus a XmNewToggleButton displays a checkbox whenever it is part of amultiple choice selection. When in exclusive mode the new toggle buttonwidget class draws a round button instead which looks much like thebuttons known from old radios.For compatibility reasons the new toggle button replacement alsofeatures a "tri state" mode known from other GUIs.!!!NOTE!!!The OSF claims that sublassing existing widget classes is almostimpossible (with the exception of XmPrimitive and XmManager). I'vefound out (on my PLB: Yet Another Acronym for "Personal Linux Box")that this doesn't seem to be that much worse. I tested the code withMotif 1.2.3 and got very good results. At this time there is only onebug concerning keyboard traversal whenever a XmNewToggleButton sits ina pulldown or popup menu. If at the time of popup the mouse cursor"sits" on top of the new toggle button, moving the keyboard focus withthe cursor keys will hide the popup menu.I I don't know to some extend whether the code works on Motif 1.1. WhenI tried to test it with SGI's Motif 1.1(.1) the demo enters an endlessrecursion loop caused by Motif's internal geometry management. Seemsthat the OSF made a mistake in the ToggleB.Initialize procedure. Butthere is good chance that they corrected the mistake with later 1.1revisons. But you can't use it with Motif 1.1 in menu panes (with the0.91b XmNewToggleButton version).To test the new widget class edit the Makefile, then just do a make and run./demoafterwards if the code compiles successfully.Please report any bugs/problems/efforts you encounter/made.DISCLAIMER:THIS PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHEREXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM ISWITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OFALL NECESSARY SERVICING, REPAIR OR CORRECTION.IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITINGWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/ORREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISINGOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITEDTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BYYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHERPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THEPOSSIBILITY OF SUCH DAMAGES.Please read the file COPYING for more details.(c) 1994 Harald AlbrechtInstitut fuer Geometrie und Praktische MathematikRheinisch-Westfaelische Technische Hochschule AachenD-52056 Aachen, Germanyalbrecht@igpm.rwth-aachen.de
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -