How to remove page scroller from XmNotebook?

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

Questions about motif? Contact us

2 posts / 0 new
Last post
How to remove page scroller from XmNotebook?

Submitted by Anonymous on Mon, 07/02/2001 - 17:42. Developers
I use XmNotebook as simple container to simulate tab option groups.
The page number with arrows at the bottom is annoying and useless
in my case (just two groups/pages). It also displays 0 as default value,
in spite of my setting
XmNfirstPageNumber 1
XmNLastPageNumber 2
The default page is displayed correctly.
Is there a more elegant way to remove page scroller than creating
a bougs widget, setting its
XmNnotebookChileType XmPAGE_SCROLLER
and then unmapping it?

Thanks in advance,

Dusan

Anonymous

Since no one knows how to answer my question,
or everyone is on vacation, I will answer myself.
XmNotebooks has other serious flaws - all tabs have
the size of the maximum tab - It does not use one of
the nicest features of Motif - automatic button adaptation
to text label length. But things get worse If there is not
enough space, XmNotebook will simply unmap the extra
tabs, and user will not know that extra options are there,
unless he/she resizes the window! Horrible.

I have given up my fight with XmNotebook and now I use
TabBook. If all you need are tabs - this is the way to go.
http//www.compgen.com/widgets/TabBook.htm
Thank you, Gary Aviv, for writing it.

Dusanl