> This resolved many of my problems!
Good! :-)
> But I do have one issue.
You should try to change the order, but it should work (just grep for RemoveFrame in the ROOT GUI source code...) Maybe something like this:
m_EB_frame->RemoveFrame(m_EB_btnframes[i]);
m_EB_btnframes[i]->UnmapWindow();
delete m_EB_btnframes[i];
And what does Cleanup() depends on whether you called SetCleanup() at construction time or not...
Cheers, Bertrand.
On 5/15/2012 6:30 PM, suvayu ali wrote:
> 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:52:53 CEST
This archive was generated by hypermail 2.2.0 : Tue May 15 2012 - 23:50:01 CEST