Motif General Discussion

Syndicate content

Insider Tips on Motif Webcast

Are you new to Motif or do you need a refresher?  Check out the Insider Tips on Motif Webcast at the ICSNetwork.

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.

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.

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

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

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,

Motif 2.0 over X11R7

Hi all,

does Motif 2.0 can be used over X11R7 ?

thanks
Amit yedidia

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.