[ROOT] TGListView::DoubleClicked() problem

From: Bertalan Juhasz (Bertalan.Juhasz@cern.ch)
Date: Mon Jan 07 2002 - 11:21:42 MET


Dear Rooters,

I'm developing some GUI classes and I've encountered the following
problem: even if I connect TGListView::DoubleClicked() to one of my slot
functions using

fFileView->Connect("DoubleClicked(TGLVEntry*, Int_t)", "PbarFileBrowser",
this, "HandleBrowser(TGLVEntry*, Int_t)");

the HandleBrowser() function is never called when I double click on an
item although ROOT is not complaining about wrong signal/slot connection.
Was I doing something wrong? After digging into and playing with the ROOT 
code I've discovered that HandleBrowser() is never called because
TGListView::DoubleClicked() is never called, only
TGLVContainer::HandleDoubleClick(). After I've added the following lines
to TGLVContainer::HandleDoubleClick()

if (fListView) fListView->DoubleClicked(f, event->fCode);
if (fListView) fListView->DoubleClicked(f, event->fCode, event->fXRoot,
event->fYRoot);

right after SendMessage(...) (similarly to TGTreeView) everything worked
fine but maybe this is a dirty/illegal solution (I'm completely new to GUI
programming). Most likely TGListView::Clicked() has similar problems but
that I didn't investigate.

I'm using ROOT 3.02/06 with RedHat 7.2.

BTW, are there plans to write some User's Guide on GUI programming? For
those how never did anything like that before (like myself) it's a bit
painful (and dangerous) to learn just by digging through example codes
(although those codes are quite nice).

Regards,

Bertalan



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:37 MET