124 questions
3
votes
1
answer
67
views
How do you make XbaeMatrix widget non editable
I am trying to use XbaeMatrix to display tabular/matrix data but I do not want the cells to be editable.
I can not find how to achieve that.
This is what I have tried:
/*
* xbae_example.c
* Minimal ...
1
vote
0
answers
40
views
Resource colors for XmContainer and XmScrolledWindow
I have the following structure:
XmScrolledWindow -> XmContainer
I am struggling to identify which resources control:
a) the border that surrounds the XmContainer when scroll bars are required. ...
2
votes
0
answers
65
views
How to display a label as message window in Motif MainWindow
I want to use the Motif MainWindow using:
A container as work region
A label as message window.
But the label is not shown.
My expectation is that it would be shown below the container (work region)....
3
votes
0
answers
142
views
XMotif segfault in `ManagerEnter` when `XmIconButton` in `XmContainer` is dragged
I have an XMotif application which uses the XmIconButton widget class inside an XmContainer. I have an XmNactivateCallback set on the button and it works fine, callbacks are received correctly.
...
3
votes
1
answer
76
views
Motif label size not kept when changing XmNlabelString using XtVaSetValues
I'm working on a Motif application with a xmPushButtonWidgetClass button and a xmLabelWidgetClass label. I set initial text, position and size in the label:
lbl1TextHint = XmStringCreateLocalized(&...
1
vote
1
answer
72
views
XtGrabPointer does not confine to widget window area
I'm writing an Xt/Xm application and trying to emulate the effect of the Win32 ClipCursor on a widget.
However, the following fails to constrain the pointer to the specified widget area in confine_to
...
3
votes
1
answer
145
views
Mixing Qt with Motif in same application
I have a legacy application using Motif graphics that I am trying to migrate forward to modern times. Rewriting all at once is a hard-sell (and risky) so I'd like to slowly migrate one window at a ...
2
votes
2
answers
178
views
Is the memory allocation of this char ** and the subsequent allocation of char * correct?
I have the following struct definition intended to represent a time series chart:
/* MAX TICKS 24 HOURS * 60 MIN * 60 SEC */
#define MAX_TICKS 86400
/* CHART PARAMETERS */
typedef struct {
/* ...
1
vote
0
answers
126
views
Warning: Cannot find callback list in XtAddCallback
I recently start using program Radware (1998) for nuclear data analysis based on C-language I have done following process one by one-
make all > make xm > make install
then in my Ubuntu (22.04.3 ...
1
vote
1
answer
42
views
Call to XtIsSubclass(w, xmComboBoxWidgetClass) is failing in RHEL
I am migrating a module from Solaris to RHEL 7.9 which uses X motif for building the UI.
After the migration, the call to - XtIsSubclass(w, xmComboBoxWidgetClass) is failing
where w is the Combo box ...
1
vote
0
answers
30
views
Issue getting data into the Motif data visualization tool
I pulled downed the entire motif data visualization project from here https://github.com/cylynx/motif.gl. I installed neo4j desktop and I'm using the default movie database project. The db is ...
1
vote
1
answer
104
views
How do you add a scrolled text widget that grows with the size of its manager and takes the whole height?
I am trying to add a scrolled text widget that grows with the size of the application window. It will take all available space. It is intended to be a message area on the bottom of a Main application, ...
1
vote
0
answers
335
views
Problem with homer in findMotifs.pl when using input and bg fasta
I am using the following command:
findMotifs.pl input.fa fasta ./Output -fastaBg bg.fa -len 8,10,12 -norevopp
The input and bg fasta have this structure and the bg fasta include all sequences in ...
2
votes
1
answer
120
views
Which alternatives does Motif 2.3.8 has for virtual desktop?
I have read that MWM had WSM in the past, and that is included in the demos/programs folder in the source code for 2.3.8.
However, there is a note stating that the functionality to support was removed ...
2
votes
2
answers
214
views
How can I make Motif Push Button widget to appear as permanently pushed?
I have written a simple tool to select an audio channel in FreeBSD.
This is the code:
xaudio.c
#include <Xm/Xm.h>
#include <Xm/PushB.h>
#include <Xm/MainW.h>
#include <Xm/...
0
votes
0
answers
247
views
Is there a way to restrict mouse movement within a certain region in X11?
I have a C application developed with X/Motif and I would like restrict the mouse movement to stay within certain boundaries, not necessarily the main window itself. I found about the XGrabPointer ...
0
votes
1
answer
150
views
XmDrawingArea input callback misses events
I'm trying to track down a problem that looks like missing events in a Motif drawing area.
If I hit mouse button 1 inside the drawing area I get the ButtonPress and ButtonRelease events but then I ...
1
vote
0
answers
787
views
Motif and X11 with Emscripten and WASM
For a webpage that I'm doing I'm trying to integrate some very old legacy code into a web browser using Web Assembly and C++. This legacy code uses Motif an old C++ front end framework. I was unable ...
2
votes
1
answer
192
views
How do I pass a widget as client_data to a Xt/Motif signal handler?
I want a Motif application to redraw a Drawing Area widget on reception of SIGUSR1 signal.
I have configured the signal using the Xt functionalities in X11R6:
/* CONFIGURE READ SIGNAL, TRAPS SIGUSR1 ...
0
votes
1
answer
86
views
Can you use struct XrmOptionDescRec array to pass non-Motif related parameters to an application?
I have seen how to configure xrm resource names via XrmOptionDescRec struct array. An example of this can be found in this question.
I am wondering if I can also pass non-X11 related arguments via ...
1
vote
3
answers
427
views
Setting the title of a Motif Window
I am trying to set the title of a toplevel Motif 2.1 window.
From O'Reilly Volume Six A, I have seen that in Motif 2.1 XtVaOpenApplication is recommended to create a toplevel Widget.
In this appendix ...
0
votes
1
answer
281
views
Impossible to pass a Motif widget array as client_data in XtAddCallback?
Greets all, what I've got is a much simplified snippet of a real program that has to update the label strings in 45 million Motif label widgets. Simplified version: I create two label widgets and set ...
1
vote
0
answers
86
views
Matrix computation without for loop in python
I am newcomer with python. Is there a way to remove all 'for loops' and use matrixes and vectors instead?
for trip in u_triplets:
sub_gr = G.subgraph(trip)
mot_match = [nx.is_isomorphic(sub_gr,...
0
votes
1
answer
108
views
Why am I getting uneven vertical padding in a Motif Widget List?
I am using a Motif Widget Scrolledlist. The list is created as follows:
/* COMMAND GROUP LIST */
ac = 0;
XtSetArg(al[ac], XmNselectionPolicy, XmSINGLE_SELECT); ac++;
XtSetArg(al[ac], XmNtopAttachment, ...
0
votes
1
answer
140
views
Why do I get this warning when using a PushButton simple callback in Motif?
I am trying to compile this excerpt of code without errors:
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#include <Xm/Xm.h>
#include <Xm/Form.h>
#include &...
1
vote
0
answers
166
views
Make a Motif Option Menu Widget take the whole width (stretch) of its parent (form)
I have the following code, which is basically an option menu inside a form in Motif.
#include <Xm/Xm.h>
#include <Xm/Form.h>
#include <Xm/Label.h>
#include <Xm/PushB.h>
#...
1
vote
1
answer
162
views
Creating an option menu in Motif
I am trying to create an option menu using Motif toolkit.
If I try this, it works:
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#include <Xm/Xm.h>
#include <...
0
votes
1
answer
210
views
Multithread or Motif widget issue while trying to append text to a Xm Text Widget
I am trying to use a TextWidget as a log, where programmatically text is added.
By using XmTextInsert, XtVaSetValuesand XmTextShowPosition I can append text to a Text Widget, however I have noticed ...
2
votes
1
answer
247
views
How do I create two toplevel windows in Xt/Motif?
To create a sample toplevel window the following code can be done. This is shown in documentation and Motif books (specifically this example is based on "Motif Essentials, Programming and More by ...
1
vote
0
answers
74
views
Incompatible integer to pointer conversion assigning to 'Widget' while compiling a basic OptionMenu example [duplicate]
I am trying to compile a basic window with an OptionMenu Motif Widget.
This is what I tried:
#include <Xm/Xm.h>
#include <Xm/PushB.h>
XtAppContext context;
XmStringCharSet char_set=...
1
vote
1
answer
48
views
How to map Esc to an action in a Motif widget
This minimal example creates a Motif window with a push button widget.
#include <Xm/PushB.h>
int main(int argc, char **argv) {
XtAppContext app;
Widget toplevel, b;
char *...
1
vote
0
answers
115
views
Need to get the toplevel widget from an XtAppContext
I'm looking for something like XtWidgetToApplicationContext() however that would work the other way around ↔ return the toplevel widget from its application context. Is there such function? In general,...
0
votes
1
answer
222
views
Motif - c++ - menu bar with two type of button and callback
I'm working on a project that is supposed to translate the user input but that isn't the issue. Indeed I'm new to libmotif and I want a toggle button to chose the way of translation (french to italian ...
2
votes
1
answer
214
views
Motif How to calculate or retrieve the font pixel size?
I am trying to write code in Motif to change a dialog warning box to resize size it if the box is not wide enough. The width and height is always being set by the calling classes and its not always ...
2
votes
3
answers
230
views
Column-Packed RowColumn Class for Motif Library (C)?
I recently asked this question: Horizontally-Drawn RowColumn Class for Motif Library (C)?
In my previous question, I was having trouble getting the xmRowColumnWidgetClass to draw horizontally (row-by-...
0
votes
0
answers
294
views
.xpm files not loading
I have ported a 32-bit Motif application (from SLES 10 SP1) to 64-bit SLES 12 SP3. Because of proprietary libraries (XRT) I have been forced to compile on a 32-bit platform (SLES 11 SP3) and link ...
0
votes
0
answers
337
views
What code is required to enable client-side decoration in Gnome 3 with X without using GTK?
Returning user here. I have a requirement to migrate a system of OpenMotif 2.3 apps currently running under RHEL5, Gnome Desktop 2.x, to Gnome 3 under RHEL7. The problem is that the apps require ...
0
votes
0
answers
283
views
MOTIF GUI programming
MOTIF GUI PROGRAMMING !
Hi there. I am a MOTIF GUI Programmer in C language.
After a longer break i have problems with the GCC compiling.
my MOTIF file is named winstack.c
The compilation runs good.
...
0
votes
1
answer
95
views
How to create a X window to perform another program or Set one window alway on top
I get 2 independent programs (A & B) on Linux Redhat, developed by Motif toolkit based on X window.
These 2 programs all have there own human-machine-interface.
and there come the questions:
When ...
0
votes
1
answer
124
views
libXm get display number from widget
I'm using libXm4.0.3. I want to get the display number that the widget is being displayed on from the widget.
Going directly to xlib causes a segfault. Xt seems to also segfault.
I started using ...
0
votes
1
answer
162
views
How to center the main Application Window in MOTIF in the middle of the computer screen?
How to center the main application window of a MOTIF Widget in the center of the computer screen ? for example a form Widget here.
The code is ready and working but the window appears on the left ...
0
votes
1
answer
885
views
Is there a way to return all Widgets from a parent Window with X11/Xt?
I'm writing an application using X11, Xt, and Motif directly with C. I want to have the ability to list all the children widgets from a parent Window. Is there a way to do this?
I found the following ...
0
votes
2
answers
145
views
Makefile:1059: *** missing separator. Stop
I have a project writed for DEC Unix v4. I want to compile it for linux.
My project have Imakefile, I run xmkmf to generate Makefile and after that run make to compile but I get Makefile:1059: *** ...
0
votes
1
answer
76
views
Keep VkMainWindow on Bottom
I have an app, running on Linux, which is comprised of a VkMainWindow and several VkWindows. The desired behavior is to keep the VkMainWindow always on the bottom (and hence, all the VkWindows always ...
1
vote
1
answer
225
views
Make JVM dialog a child window of native top-level window
I have a legacy, X/Motif, C++ application for which new windows have been added using Java/JNI.
New Java windows have been either top level windows or dialogs with no parent.
Is there any reasonable ...
1
vote
1
answer
127
views
X Toolkit: heap is growing when recreating widgets
I'm trying to understand why the following program is leaking memory. When I look at the heap size by using the command more /proc/<pid>/smaps, I can see that the heap is only growing. It seems ...
2
votes
0
answers
925
views
Get the all childs of the parent id using spark graph frame motif search
I am using apache spark to create graphframe using motif query.
I have created required edges and vertices and after that executing motif query on lookup pattern. I need to fetch all childs of a ...
1
vote
0
answers
47
views
Convert from window name to shell?
Using a combination of XInterAtom(disp, "_NET_CLIENT_LIST", False) and XGetWindowProperty, I can successfully obtain a list of running windows.
However, is there a way to convert that data to a ...
1
vote
1
answer
592
views
MOTIF programming and X11 client?
iam interesting in MOTIF programming.
One question :
Is it right that in Motif GUI programming the actions are automaticly transformed and networked to other clients over the internet without ...
1
vote
0
answers
340
views
A 'RenderBadPicture' Xerror rarely occurs from xrender extension
Recently, I tried to upgrade the Motif library (libXm.so) to a newer version (2.3.3) with XFT support for rendering mutli-language characters.
I ran the application and an very annoying X error ...