is there a way the get the height and the width of the display you just work on? I already tried this:
Int_t dx,dy,dw,dh;
gVirtualX->GetGeometry(-1,dx,dy,dw,dh);
cout<< "x:"<<dx<<" y:"<<dy<<" width:"<<dw<<" height:"<<wh<<endl;
Unfortunatly all the values are 0 all the time.
thanks for the quick reply. Those functions give me the size and the position of my Canvas. But browsing further into the TCanvas tree I found thatgClient->GetDisplayHeight();
gClient->GetDisplayWidth(); will give me the information that I wanted.
[quote=“Valeriy Onuchin”]I didn’t see such message under win32. OK. I’ll check it later.
I’m using exactly the same code in GuiBuilder … [/quote]
Valeri, forget about Partially, it was a joke
Yes, this is UB due to C++ standard (this part of C++ standard text is real hard-core, even C++ experts can read it in different ways ), but we can live with it - I guess it’s difficult/impossible to find a compiler which will generate something strange for expression x = x = 0; (or x = y = 0;). Of course, std::cout<<i++<<’ '<<++i; is more serious example of UB. No compiler required to issue diagnostic message in these cases.