Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以使用 openmotif 小部件工具包将图像配置为按钮。
基本上,图像会像一个按钮一样,并具有类似于普通按钮所发生的激活回调。这在主题中怎么可能?
提前感谢您的回答。
是的,如果您编译的主题库支持.jpeg,.png和.gifimages.... 您必须阅读XmPushButton或XmPushButtonGadget(或者更好,因为它们是 XmLabel或XmLabelGadget的子类)手册页。@通过在文本资源字符串前面放置一个来选择图像。您可以在应用程序的资源文件或文件中执行此${HOME}/.Xdefaults操作。
.jpeg
.png
.gif
@
${HOME}/.Xdefaults