RE: Scroll to home in TGTextEntry

From: Bertrand Bellenot <Bertrand.Bellenot_at_cern.ch>
Date: Mon, 2 Nov 2009 12:27:00 +0100


Hi,

I just tried with 5.14.00 on slc4/gcc3.4 and it works just fine. Could you send a running macro showing the problem?

Cheers, Bertrand.

-----Original Message-----
From: Dani Barna
Sent: Monday, November 02, 2009 11:43
To: Bertrand Bellenot
Cc: roottalk_at_root.cern.ch
Subject: RE: [ROOT] Scroll to home in TGTextEntry

Hi,
Thanks. Version 5.14, SLC 4.7
I have also tried UpdateOffset, but that is protected.

Anyway, I think I will have much less headache if I just append the important part of the information to the end of the string displayed here,
and forget about the scrolling...

Cheers

On Mon, 2 Nov 2009, Bertrand Bellenot wrote:

> Hi,
>
> Weird, textEntry->Home() works for me...
> You may also try the following:
> textEntry->Home();
> textEntry->UpdateOffset();
> gClient->NeedRedraw(textEntry);
>
> BTW, which version of ROOT? On which platform?
>
> Cheers, Bertrand.
>
> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
> On Behalf Of Barna Daniel
> Sent: Monday, November 02, 2009 09:49
> To: roottalk_at_root.cern.ch
> Subject: [ROOT] Scroll to home in TGTextEntry
>
> Hi,
> How can I scoll to the home position in a TGTextEntry? I update its
> content, which is longer than the entry widget, and I would like the
> text to be scrolled and visible from the first character.
> I tried Home() and SetCursorPosition() in vain.
> Thanks
>
>
Received on Mon Nov 02 2009 - 12:27:03 CET

This archive was generated by hypermail 2.2.0 : Mon Nov 02 2009 - 17:50:02 CET