Re: Canvas never gets drawn.....

From: Rene BRUN <rene.brun_at_cern.ch>
Date: Tue, 15 Mar 2005 19:06:35 +0100


It looks like on your new machine you have a mismatch in your PATH declaration. Are you sure to execute 4.03/03 on this machine ?

Rene Brun

Mike Clements wrote:
> Hello,
>
> Version &#61664; 4.03/03
> Machine &#61664; WindowsXP (service pack 2) Pro Dual
> P4
>
> I have a very simple application which just
> attempts to draw a canvas on the screen. This code
> works fine on my desktop machine (which is XP Pro),
> however, when I build and run the same application on
> a different machine (the one listed above), I get the
> following two lines displayed on my console:
>
> Warning in <TCanvas::ResizePad>: can1 width changed
> from 0 to 10
> Warning in <TCanvas::ResizePad>: can1 height changed
> from 0 to 10
>
> And then no canvas is ever drawn. Here is the code:
>
> int main(int argc,char* argv[])
> {
> TApplication* app = new
> TApplication("root_app",&argc,argv);
>
> TCanvas* can1 = new
> TCanvas("can1","TICKS",0,0,800,600);
> can1->SetFillColor(42);
> can1->SetGridx();
> can1->SetGridy();
> can1->Draw();
>
>
> Sleep(10000);
>
> return 0;
> }
>
>
>
> At this point I am banging my head against a wall
> trying to get this fixed. Any suggestions&#61514;
> Thanks!
>
> Cheers,
> Mike
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>
Received on Tue Mar 15 2005 - 19:06:41 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET