Motif under Tcl/Tk

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
Motif under Tcl/Tk

Submitted by Anonymous on Thu, 09/13/2001 - 22:05. Developers
I`m trying to solve a problem and would like to know if anyone has tried this or heard of something similar. I have a Motif based graphics application which currently runs as a standalone application. I need to figure out a way to embed this application into a Tcl/Tk window (not my choice, but am stuck with the Tcl/Tk app). What I would like to do is figure out a way to make the Tcl/Tk window act as the TopLevelShell for my Motif application. I spent some time trying to fake-out Motif, but the TopLevelShell is responsible for interacting with events, etc. Anybody have any ideas? Thanks in advance.

ICS_support

Isn`t there a tclMotif package for just this purpose? I remember once using some horrible tcl thing in order to test Motif widgets.

Anonymous

The well-known BLT (http//www.tcltk.com/blt/) toolkit has a container widget.

Or you could use George Peter Staplin`s TkXext (http//www.xmission.com/~georgeps/tkxext/) which has an embed command.

Anonymous

I`ve done some work embedding Tk in an Xt application using Xaw widgets. Here`s a page I wrote about it http//mini.net/cgi-bin/nph-wikit/1578.html

Note the timer problem discussed on that page I`m working on every once in a while. For now you can use a timeout with select().

Also as davygoat pointed out my TkXext package might be helpful in your quest.

Good luck,

George