Questions tagged [motif]

a graphical user interface toolkit used in software development

Motif is one of the first X toolkits, a sucessor of the Athena Widgets (Xaw).

Some resources include:

118 questions
3
votes
2 answers

How to change focus in X-Windows?

I am working on old Motif-based application for Linux. I want to be able to programmatically change the active window of our application. I can redirect the input by using XSetInputFocus() function and the keyboard input start to go there, but…
theJonan
  • 41
  • 1
  • 5
3
votes
1 answer

Set dialog window's border color

The root question here is this: How do I set the color for the border around a window (more specifically, a dialog window)? I have a dialog window which pops up with an alert. Due to the critical safety nature of the alert, there is a requirement…
Loduwijk
  • 1,950
  • 1
  • 16
  • 28
3
votes
1 answer

Cannot get keyboard input or traversal working for Motif application

I have a Motif app running on a Raspberry Pi. For debugging purposes I am using an X Windows server on my PC and SSH tunneling X through Putty. It may also be worth noting that when I initially run the app, the input goes to the SSH shell/Putty…
AlastairG
  • 4,119
  • 5
  • 26
  • 41
3
votes
3 answers

How to use colors in Motif

I'm new to GUI programming in C and Linux, and I'm having a hard time with it. It seems like a fairly simple/straightforward thing, but I can't find any answers googling. I want to add a background color to a widget. XmNbackground seems to be what I…
user255492
  • 33
  • 3
3
votes
1 answer

How should I use X11, motif, DrawingArea, and c++ to set the DrawingArea (X,Y) coordinate (0,0)

I am trying to work with DrawingAreas and things aren't working the way I expected. #include #include main(int argc, char *argv[]) { Widget shell, workArea, box1; XtAppContext app; shell = XtVaAppInitialize(&app,…
Gavin Palmer
  • 1,220
  • 15
  • 25
2
votes
1 answer

find_motifs function to remove the edge

I've got little problem here which is I want to remove the edge between 2 sample of nucleic acid "CYS 6 N", "ASP 40 OD2" by using the motif argument. from grandiso import find_motifs import networkx as nx host = nx.read_adjlist('number_2…
2
votes
1 answer

X11, sending an event with XSendEvent(3)

I embedded a X11 app (xterm) in a Motif window. All seems to work fine, but if I press a key when the pointer isn't above the embedded app, it doesn't get it. Trying to fix this, I changed the main loop of the main app. Now it's like this: …
mghis
  • 517
  • 1
  • 5
  • 14
2
votes
1 answer

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 wide enough for the message being displayed and…
user3416126
  • 148
  • 11
2
votes
2 answers

Old-school C stumper - most keyboard input ignored by ancient XWindows/Motif app

I'm reviving a source build of an old Xt/Motif application that hasn't been worked on in years, and last built successfully on 32bit Red Hat 4. I have it mostly building and running on 64-bit Red Hat 5. There's just one significant problem with…
Steve
  • 2,396
  • 2
  • 15
  • 16
2
votes
0 answers

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 particular node with its subchilds.For example: //…
Avinash chavan
  • 259
  • 1
  • 4
  • 12
2
votes
1 answer

Porting IRIS GL to Open GL?

Hi I'm really new to IRIX, IRIS GL, and Motif. I must compile more than 30 C codes written in 1997. Because these sources require header files such as XmAll.h, Xlib.h, and so on, I thought I just needed Unix and Open Motif to compile them. I…
pnmn
  • 1,127
  • 1
  • 14
  • 22
2
votes
1 answer

Showing only relative paths in the directory pane of a Motif FileSelectionBox

What is the recommended way to make an (Open)Motif XmFileSelectionBox show just relative paths inside the "Directories" pane? I mean, something like this instead of I've tried looking for something tweakable via .Xresources but couldn't find…
Joril
  • 19,961
  • 13
  • 71
  • 88
2
votes
1 answer

Display text vertically using XDrawString

I am using XDrawString to display text on a drawing area. By default this seems to display text horizontally from Left to Right. Could any one please tell me how I can use this library function to rotate and display text vertically from Top to…
arun nath
  • 773
  • 1
  • 6
  • 11
2
votes
1 answer

Convert motif .uil files to QT .ui files

Anybody knows of a tool to convert motif .uil files to QT .ui files? Or a script like converting the .uil to xml and then to .ui files. I have a lot of .uil files so defintely not doing that manually. Thanks!
2
votes
2 answers

Java Swing - Disappearing text in custom combobox renderer in Motif L&F

I'm currently writing a custom ListCellRenderer for a JComboBox. To do this, I'm using a system to fetch a new renderer whenever the L&F changes, and delegate the method to this. This works nicely in all L&Fs. However, when I place this component in…
bombax
  • 1,189
  • 8
  • 26