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
1
vote
1 answer

How to map Esc to an action in a Motif widget

This minimal example creates a Motif window with a push button widget. #include int main(int argc, char **argv) { XtAppContext app; Widget toplevel, b; char *translations="Escape: ArmAndActivate()\n\ …
Quasímodo
  • 3,812
  • 14
  • 25
1
vote
0 answers

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, how to obtain the widget from owning…
psprint
  • 349
  • 1
  • 10
1
vote
2 answers

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-row) instead of vertically (column-by-column).…
overlord
  • 141
  • 7
1
vote
1 answer

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 way to get a child window created by the JVM, such…
Loduwijk
  • 1,950
  • 1
  • 16
  • 28
1
vote
1 answer

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//smaps, I can see that the heap is only growing. It seems that the XtDestroyWidget is not really freeing up the…
Gijsbert
  • 31
  • 2
1
vote
0 answers

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 pointer to a shell or widget, to be able to determine…
cv2k14
  • 33
  • 2
1
vote
1 answer

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 network programming necessary ? Are the commands…
Zabo
  • 273
  • 1
  • 2
  • 8
1
vote
0 answers

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 occurs sometimes (many hours)…
double_g
  • 836
  • 7
  • 9
1
vote
1 answer

XmNvisibleItemCount not returning correct number of items when window is resized

XmNvisibleItemCount is supposed to return the number of visible items in a list. Unfortunately, it does not return the right values when I resize the window. XtVaGetValues(myWidget, XmNvisibleItemCount, &vic, XmNitemCount, &ic, NULL); The above…
lolololol ol
  • 848
  • 1
  • 8
  • 18
1
vote
0 answers

How do I cascade right-click menu sub-menus to the left instead of right?

I am using x/motif for the GUI. I have context menus which pop up when right-clicking a certain area. When the right-click is too close to the right edge of the display, and therefore the menu itself is too close to the display edge, the sub-menus…
Loduwijk
  • 1,950
  • 1
  • 16
  • 28
1
vote
1 answer

How to compile '97 C codes using Motif?

Hi I'm trying to compile about 30 C sources written in 1997. Based on required header files such as XmAll.h and Xlib.h and the use of "Widget" syntax, I found that these sources depend on the Motif programming tool kits, so it seems they should be…
pnmn
  • 1,127
  • 1
  • 14
  • 22
1
vote
1 answer

XWindow not listening to its own attributes/ window manager

Problem: I have a java window controlled by XWindows in a Window Manager C++ file on a Linux system. There is a bug somewhere, if you open the HCI roughly between 7-35 times consecutively (and quickly) typically at least one time the window is…
JavaBeast
  • 766
  • 3
  • 11
  • 28
1
vote
1 answer

XmStringGenerate() in XmMULTIBYTE_TEXT or XmWIDECHAR_TEXT mode

I'm trying to display some Unicode (Cyrillic, actually) using XmLabel and a server-side XLFD font (-monotype-arial-medium-r-normal--*-90-*-*-p-*-iso10646-1). Whenever I use XmStringCreate() or XmStringCreateLtoR() as an XmString factory, the result…
Bass
  • 4,977
  • 2
  • 36
  • 82
1
vote
2 answers

How to keep one of my application windows on top of the other windows of the same application?

I have a Motif-based notepad-like legacy application. I would like the modeless "Find/Replace" dialog (which is a Motif TopLevelShell) to always stay on top of the other windows of my application, but not on top of other applications. I don't see…
Bill
  • 14,257
  • 4
  • 43
  • 55
1
vote
0 answers

Qt MenuBar highlight border with motif style

I have a QMenuBar with two sub menus using the motif style (Qt 5.3). A black border appears around the QMenuBar when following this scenario (example code below): Click sub menu "Foo1" Click sub menu "Bar1" The border appears after clicking on…
softs
  • 11
  • 2