motif

NullPointerException on PLAF change to Motif

那年仲夏 提交于 2019-12-12 00:56:50
问题 Can anybody see what I have done to cause the NullPointerException (stack trace below)? The panel appears OK: Textual output os.name: Windows Vista os.version: 6.1 java.version: 1.6.0 java.vm.version: 1.6.0-b105 java.vendor: Sun Microsystems Inc. That ( 1.6.0-b105 ) is ancient, it is the default run time environment of Netbeans here. Must update to a version 7 JRE. Code import java.awt.*; import java.awt.event.*; import java.util.HashMap; import java.util.Map; import javax.swing.*; import

How to kill XtAppMainLoop (Motif)?

[亡魂溺海] 提交于 2019-12-11 06:33:29
问题 I want to use XmCreate{Error|Warning|Info}Dialog to display some message in screen in my SDL based application before its main window is open and any program data is available. I want the dialog to open, print the intended message, and when the user clicks on the OK button, the dialog plus the top widget I had to create for it should be closed/removed. Now afaik XtAppMainLoop will loop and process top widget messages (a window?) until the user closes it. I want to close it when the dialog

OpenGL SuperSampling Anti-Aliasing?

安稳与你 提交于 2019-12-05 09:42:29
At office we're working with an old GLX/Motif software that uses OpenGL's AccumulationBuffer to implement anti-aliasing for saving images. Our problem is that Apple removed the AccumulationBuffer from all of its drivers (starting from OS X 10.7.5), and some Linux drivers like Intel HDxxxx don't support it neither. Then I would like to update the anti-aliasing code of the software for making it compatible with most actual OSs and GPUs, but keeping the generated images as beautiful as they were before (because we need them for scientific publications). SuperSampling seems to be the oldest and

Embed an app into a window

青春壹個敷衍的年華 提交于 2019-11-30 14:14:30
FvwmButtons (a module of fvwm window manager) has the Swallow function, that embeds the window of an application into a panel. I have to do something like this with Motif and Xlib. I want to embed an Xclock into my application. I guess I have to change the Window ID of the embedded app. How can I do that? the only supported and reliable mechanism is XEmbed, but it requires the embedded app to cooperate. Without a cooperating app, you're in a world of scary hacks. The basic thing you need to do is XReparentWindow() but the problem is that you're fighting the window manager which will also want

Embed an app into a window

怎甘沉沦 提交于 2019-11-29 20:13:28
问题 FvwmButtons (a module of fvwm window manager) has the Swallow function, that embeds the window of an application into a panel. I have to do something like this with Motif and Xlib. I want to embed an Xclock into my application. I guess I have to change the Window ID of the embedded app. How can I do that? 回答1: the only supported and reliable mechanism is XEmbed, but it requires the embedded app to cooperate. Without a cooperating app, you're in a world of scary hacks. The basic thing you need