Hello Ed.
Did you try to add
gPad->Modified();
gPad->Update();
The TObject::Draw method doesn't paint anything on the screen on its
own.
This should help.
Bets regards, Valeri
> -----Original Message-----
> From: Ed Oltman [mailto:eoltman@imago.com]
> Sent: Thursday, July 10, 2003 9:04 PM
> To: Roottalk@Pcroot. Cern. Ch
> Subject: [ROOT] TButton: cannot set logy!
>
> Hello,
> I have a win32 root application - currently 3.05/3 from cern binaries
> that has a TCanvas
> and two TControlBar's with buttons that are used to direct data
analysis
> and display
> results on the TCanvas. After discovering the TDialogCanvas, I
realized
> I could combine
> these 3 windows into a single one: I use a TButton as an embedded
TPad
> within my
> TDialogCanvas. One of my old TControlBar buttons would toggle beteen
> lin and logy:
>
> int linlog = gPad->GetLogy() ? 0 : 1;
> gPad->SetLogy(linlog);
> gPad->Draw();
>
>
> When this code is run in the TButton version, it does nothing. I've
even
> replaced gPad
> with the TButton * object and it still does nothing. If TButton
> inherits from TPad, why
> does this not work?
>
> Is there another way to embed TPad into a single canvas that also has
> buttons? I am not
> yet ready to use the gdk or Qt versions - there are still issues with
> both of these and
> I have not even tried the cygwin yet... Thanks
>
> Ed Oltman
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET