Re: Refreshing ROOT gui frame after modifying elements

From: Bertrand Bellenot <bertrand.bellenot_at_cern.ch>
Date: Tue, 15 May 2012 17:25:42 +0200


> Firstly, thanks a lot for taking a look at this.
You're welcome!

> Do you mean the m_EB_btnframe[i] should be TGVerticalFrames instead?
No, only the parent frame, but never mind. Maybe adding a call to Layout() and /or Resize() will already solve your problem...

Cheers, Bertrand.

On 5/15/2012 5:20 PM, suvayu ali wrote:
> Hi Bertrand,
>
> Firstly, thanks a lot for taking a look at this.
>
> On Tue, May 15, 2012 at 5:10 PM, Bertrand Bellenot
> <bertrand.bellenot_at_cern.ch> wrote:
>> But note to vertically add frame (one below each other), you should use a
>> TGVerticalFrame (m_EB_frame)
> Do you mean the m_EB_btnframe[i] should be TGVerticalFrames instead? I
> say this because m_EB_frame is a tab in my application window; also I
> cannot change that as there are other tabs written by other people that
> I should not be editing.
>
>> And as a general comment, when you add/remove frames, you should call
>> something like:
>> MapSubwindows()
> I was doing this one later in the code (forgot to copy it in the email).
>
>> Resize(GetDefaultSize())
>> Layout()
> These to I have been missing. I will try to make changes based on these
> comments and see if my issue improves. Thanks a lot again. :)
>
Received on Tue May 15 2012 - 17:25:50 CEST

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