Hi Alexander,
the best way to add funcionality to some class
"without recompiling the code, or writing user defined classes"
is using "class signal-slot connection".
For mor info goto http://root.cern.ch/root/HowtoSignalSlot.html
Execute the following macro during your rootlogin.C and
every browser will be placed at x=300, y=300 position.
Regards. Valeriy
////////////////////////////////////// tst.C
////////////////////////////////////////////////////////////////////////
#include "TRootBrowser.h"
void setBrowserXY(Event_t* event)
{
if (event->fType != kMapNotify) return;
TRootBrowser *b = (TRootBrowser*)gTQSender;
b->SetWMPosition(300, 300);
}
void tst()
{
TQObject::Connect("TRootBrowser","ProcessedEvent(Event_t*)",0,0,"setBrowserX
Y(Event_t*)");
}
> Hello, root users and developers!
>
> Is that possible to customize the TBrowser geometry
> (like it is done for "xterm" in Linux) via .rootrc or rootlogin.C
>
> The problem is that it is inconvinient to have this window randomly
> appearing on my screen.
>
> The same question holds for the TCanvas opend by click from TBrowser.
> Is it possinle to specify the position of this window too, without
> recompiling the code, or writing user defined classes?
>
> I would not ask, but this was possible in PAW, I guess in ROOT
> it is also made, just I can not find it...
>
> Thanks a lot,
> Alexander
>
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET