Dynamically Changing TGTab

From: Greg Holden (gholden@jlab.org)
Date: Wed Aug 11 1999 - 19:24:46 MEST


Hello Rooters,

I have a program that needs to display some histograms that I would like
to be large (at least 600x600).  I am attempting to use a TGTab to
display them (one on each tab), but if it gets too big, then I get the
following error message:

Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for
operation) (XID: 83886324)

I have a TRootEmbededCanvas on each tab.  

In an attempt to solve this problem I'm trying to create this
TRootEmbededCanvas dynamically when the tab is pressed (and destroy the
old one). 

The problem is that then nothing appears in the tab window even
though I update the canvas in the TRootEmbededCanvas. I believe I just
need to figure out how to update the tab, but I do not know how.  Any
suggestions or alternative recommendations?  Perhaps I can just resize the
canvas larger when it is pressed?

I am using v2.21 on a sun and v2.22 on an HP.

Thanks,
Gregory Holden.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:38 MET