Developers

Syndicate content

Important Information About Registering

In order to post on the MotifZone forums, you need to be a registered user. We've changed the registration process slightly. To register, go to http://www.motifzone.net/forum/ and click the "Register" button. An administrator will need to verify your account. If you do not receive an email saying that your account has been activated within 48 hours, please send an email to webmaster (@) motifzone (dot) net.

Must Be a Registered User to Post

Hello! We've been getting a lot of spam in the forums. In order to try to counteract this problem, only registered users can now post. Sorry for any inconvenience this causes.

-Megan

Center string at point in a "round" drawing area

Here is some psuedo-code that draws something like a clock:

// Draw a full circle
XDrawArc(display,
drawingArea,
gc,
100,
RADIUS+100,
RADIUS,
RADIUS,
0,
360);

// Draw the numbers on the face
for (i - 1; i <= 12; ++i)
{
angle = i * 30;

x = convertAngleIntoX(angle, RADIUS);
y = convertAngleIntoY(angle, RADIUS);

char numString[5];
sprintf(numString,"%d", i);

XDrawString(display,
drawingArea,
gc,
x,

Possible memory leak -- valgrind indicates ToolTips at fault.

I have an application that by necessity launches a dialogue from a menu item in which the Widgets in the dialogue are created each time, they vary from invocation to invocation.

The application is very long lived and the dialogue used often.
Looking at /proc/$pid/status, VmData is growing.

valgrind indicates the memory leak is with ToolTips.

Below is a test program and valgrind snippet.

On running the program and selecting
Application->Leaky Dialogue->All Done

then

Application->Quit

No leak is detected.

CVS web access and daily builds not available

CVS web access is down for several weeks with:
http://cvs.openmotif.org/viewvc/openmotif
The requested URL /viewvc/openmotif was not found on this server.

And daily builds were never built, we still have the initial
openmotif-20091217.tar.gz 17-Dec-2009 01:00 9.3M

I remember there were some changes in CVS, while the web interface was still working. So daily build is definitely not daily, regardless of the number of changes.

This creates very low initiative for testing the latest version in CVS, as it is hard to find out what is new, if anything at all.

window disappearing with core file - Urgent

Hi all,

In production server after filling data of fields in a particluar
window and clicked on OK button, all the window get closed except the
main window and generated core file in user's home directory. Once the
user exited from the application and login again and tried to do the
same thing then it successfully done. The user is not getting this for
every time. I tried to reproduce by doing the same operation in my
local test servers.. but couldn't reproduce. I never added any new
widgets or changed anything in the screen.

XmDropDown key bindings unintuitive

I am using XmDropDown instead of XmComboBox, since I prefer its look and feel, and setup is easier.
But I have problems with keyboard bindigns, which I find extremely unintuitive.
Ctrl+"arrow down" to pop up the list and Ctrl + "arrow up" to closes the list.
And "Enter" with the list open does not confirm the choice?
But "Esc" correctly closes it.

The man page does not mention any translations or accelerators, like in XmComboBox man page.
I have looked a the source, and can find only the following

static char combo_translations[] =
"#override \n\

Display on Sun Solaris

I'm trying to run program on x86 machine and display it on an old Sun machine, but application crashes. Debugging showed that the problem connected to TrueType fonts representation, _XmRendXftFont(rend) is NULL, where rend is rendition got for string with type XmMULTIBYTE_TEXT (with XmCHARSET_TEXT everything is ok).

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e89b90 (LWP 18461)]
0x05e927c3 in ComputeMetrics (rend=0x9200160, text=0x91fffdc, byte_count=9,
type=XmMULTIBYTE_TEXT, which_seg=3, width=0xb7e8814e, height=0xb7e8814c,

XmScale does not honor XmNshowValue=XmNEAR_BORDER

This is openmotif 2.2.3 on RHEL4.6 .

Basically, it does not matter if I set XmNshowValue to XmNEAR_BORDER or XmNEAR_SLIDER. I get the XmNEAR_SLIDER behavior in either case. Any idea, anyone?

how to popup window without focus?

HI to all.
I have this problem:
I do not want to lose a focus on a window when popup another windows.

How to?
thank you

karmax