How can I use the NBook Status Line feature?
Status Line Text is set as explained.
static void C_FAR S_Win1_StatusQueryInfoNBook
L2(App1Win1Ptr, win, NBookNfyStatusInfoPtr,info)
{
NBookPageIVal currentPage,
numPages;
static Char str[80];
ERR_TRACEIN;
currentPage= NBOOK_GetActivePageNumber(win->NBook);
numPages= NBOOK_GetNumPages(win->NBook);
STR_Sprintf(str, "Page %ld of %ld.",currentPage,
numPages - 1);
info->Text= str;
ERR_TRACEOUT;
}
void S_Win1_Construct L1(App1Win1Ptr, win)
{
...
WIN_SetWgtNfyHandler((WinPtr)win,(WgtPtr)win->NBook,
NBOOK_NFYSTATUSQUERYINFO,
(WinWgtNfyHandlerProc) S_Win1_StatusQueryInfoNBook
};