Re: Refreshing ROOT gui frame after modifying elements

From: suvayu ali <fatkasuvayu_at_gmail.com>
Date: Tue, 15 May 2012 18:30:27 +0200


Hi Bertrand,

On Tue, May 15, 2012 at 5:25 PM, Bertrand Bellenot <bertrand.bellenot_at_cern.ch> wrote:
> No, only the parent frame, but never mind.
> Maybe adding a call to Layout() and /or Resize() will already solve your
> problem...

This resolved many of my problems! But I do have one issue. When I remove the TGHorizontalFrames from the tab, the buttons I added to the now removed frame remain hovering in their original place.

This is how I remove the frames:

  m_EB_btnframes[i]->Cleanup();
  m_EB_btnframes[i]->Delete();
  m_EB_frame->RemoveFrame(m_EB_btnframes[i]);

I thought the call to Cleanup() should remove all the elements added to the frame. Is my understanding wrong?

--
Suvayu

Open source is the future. It sets us free.
Received on Tue May 15 2012 - 18:30:54 CEST

This archive was generated by hypermail 2.2.0 : Tue May 15 2012 - 23:50:01 CEST