Problem in interacting with graphical object

Dear ROOT developers ,
I got a problem with version 4.00/08.
When I draw text on each of sub pad of divided canvas
as shown in the attached script,
the second text (“text2”) is visible but cannot be manipulated with mouse.
I cannnot move it with left botton nor get pull-down menu with the right button.
Could someone tell me what is going on?


kame
test.C (428 Bytes)

If you do it that way it is working:

void test()
{
  TCanvas *c1 = new TCanvas("c1", "test", 2, 2, 300, 300);
  c1->Divide(1, 2);
  
  c1->cd(1);
  TText *t1 = new TText(0.6, 0.8, "text1");
  t1->SetTextFont(131);
  t1->SetTextSize(0.1);
  t1->SetTextAlign(11);
  t1->Draw();

  c1->cd(2);
  TText *t2 = new TText (0.4, 0.8, "text2");
  t2->SetTextFont(131);
  t2->SetTextSize(0.1);
  t2->SetTextAlign(12);
  t2->Draw();
}

Thank you for the reply.

So problem lies in using NDC coordiante?
I usually draw text on histograms and often want to use not histogram coordinate but pad coordinate
in specifying the text position …


kame

yes, and also with the font number (I changed it too)

I confirmed that font type does not relate to the problem.
This indicates a bug exists around TText::SetNDC function.
I hope it will be fixed.


kame