Motif 1.2 X11 关于在 ScrolledWindow 内使用 RowColumn 小部件 [英] Motif 1.2 X11 on using RowColumn widget inside a ScrolledWindow

查看:25
本文介绍了Motif 1.2 X11 关于在 ScrolledWindow 内使用 RowColumn 小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Motif 客户端(在 Linux 上运行).客户端以表格方式向用户显示一组按钮.明显的选择是 RowColumn 小部件.我想要按钮数组周围的滚动条,所以我创建了一个 ScrolledWidget 并将 RowColumn 小部件放在里面.我还在 Row 列小部件周围放置了一个 Frame 小部件,以使其脱颖而出.

I have a Motif client (running it on Linux). The client displays an array of buttons to the user in a tabular fashion. Obvious choice is the RowColumn widget. I want scrollbars around the array of buttons so I created a ScrolledWidget and place the RowColumn widget inside. I also place a Frame widget around the Row column widget to make it stand out.

现在,问题来了.我想在退出的小部件数组之外放置一个按钮.问题是它不显示按钮.这可行吗?

Now, the problem. I want to put a button OUTSIDE the array of widgets for Quit. Problem is it not displaying the button. Is this doable?

感谢您提供任何示例代码.

Any sample code to do this is appreciated.

推荐答案

XmForm 包含:XmPushButton(退出)XmScrolledWindow 包含:XmFrame 包含XmRowColumn 包含:XmPushButtons 数组

XmForm contains: XmPushButton (exit) XmScrolledWindow contains: XmFrame contains XmRowColumn contains: array of XmPushButtons

为 XmForm 设置连接以适当放置退出按钮和滚动窗口.

Set up the connections for the XmForm to place the exit button and scrolled window appropriately.

这篇关于Motif 1.2 X11 关于在 ScrolledWindow 内使用 RowColumn 小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆