I'm doing some motif programmnig in linux. I'm new to it but I have
previous experience with Xlib.
Just wanted to ask whether the widgets described in the following
image are standard or custom-made.
http://i55.tinypic.com/11shtzc.jpg
I think I've seen tabbed styles in motif though no with that looking,
but the question is more for those bellow it.
You basically click on the label, the icon changes and the frame is
expanded so all it's contents are shown.
For things like this, is it needed a proper new widget, or is possible
to somehow mix existing ones and handle it's events to achieve such
effects?
Regards,
> Just wanted to ask whether the widgets described in the following
> image are standard or custom-made.
> http://i55.tinypic.com/11shtzc.jpg
Judging by the look and feel, the widgets are custom.
The tab widget is black an does not follow Motif's "3D" style.
Maybe this is an old application and had to use some third party
widgets, since Motif did not support those at the time.
But similar widgets do exist in Motif.
You can use XmNotebook
http://linux.die.net/man/3/xmnotebook
http://www.ist.co.uk/motif/books/vol6A/ch-17.fm.html
to configure it into the familiar tabbed behavior.
Personally, I prefer TabBook widget over the complex notebook widget
included with Motif.
http://halibut.compgen.com/widgets/TabBook.html
> I think I've seen tabbed styles in motif though no with that looking,
> but the question is more for those bellow it.
>
> You basically click on the label, the icon changes and the frame is
> expanded so all it's contents are shown.
>
> For things like this, is it needed a proper new widget, or is possible
> to somehow mix existing ones and handle it's events to achieve such
> effects?
The other widget is called tree widget, it is also available from a
couple of sources, and also in Motif since version 2.0.
What you need is XmContainer
http://linux.die.net/man/3/xmcontainer
http://www.ist.co.uk/motif/books/vol6A/ch-9.fm.html
Alternative widget for this can be found in nedit's source, which
includes Microline widget set, with a very nice tree widget.
Used to be part of original Motif based Netscape.
Here are some other custom widgets
http://www.efalk.org/Widgets/motif.html
http://www.motifdeveloper.com/widgets.html
Many links are broken, but software can mostly still be found by google.
Also, many of those widgets were written before Motif had further
evolved, so some of them are no longer necessary.
Best regards
Dušan Peterc
http://www.arahne.si