/************************************************************************* * Version 1.1 on July-30-1997 * (c) 1997 Pralay Dakua (pkanti@hotmail.com) * * This is a free software and permission to use, modify, distribute, * selling and using for commercial purpose is hereby granted provided * that THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE * INCLUDED IN ALL COPIES AND THEIR SUPPORTING DOCUMENTATIONS. * * There is no warranty for this software. In no event Pralay Dakua * will be liable for merchantability and fitness of the software and * damages due to this software. * * Author: * Pralay Dakua (pkanti@hotmail.com) * **************************************************************************/ -------------------------------------------------------------------------- Location of Tab-1.0.tgz is: ftp://ftp.x.org/contrib/widgets/motif/Tab directory. -------------------------------------------------------------------------- XmTab is a container widget, derived from XmManager, which shows the tab-labels at the top of its window and one time it shows only one child. Each of the tab-label represents one child of XmTab. If user clicks any tab-labels corresponding child get mapped. I made this widget while developing an image processing package where this type of Tabs are required. Here, geometry management was handled very much simple way. There are some problem with managing/unmanaging of children. Suggestions are most welcome. File-list: Tab.h - public header for Tab TabP.h - private header for Tab Tab.c - implemention file for Tab main.c - demo program for Tab Makefile - makefile XmTab.man - XmTab manual XmTabSetTabWidget.man - Manual for XmTabSetTabWidget() and XmTabGetTabWidget() functions. -------------------------------------------------------------------------- Description of XmTab -------------------------------------------------------------------------- Class Pointer: xmTabWidgetClass Class Name: XmTab Include File: Tab.h Superclass: XmManager Resources: Name Type Default ---- ---- ------- XmNmarginWidth XmRDimension 3 XmNmarginHeight XmRDimension 3 XmNtabFontList XmRFontList NULL XmNresizeChildren XmRBoolean TRUE Constraint Resources: Name Type Default ---- ---- ------- XmNtabLabel XmRString NULL Callback: Callback name Reason Action ------------- ------ ------ XmNvalueChangedCallback CR_VALUE_CHANGED Btn1Down