Hi Zaldi, first you need to decide for which window "Cntrl-q" is applied. Which window has keyboard focus? o in case of TCanvas -> check my previous mail o in case of TBrowser : we're going to introduce KeyPressed signal for TGContainer (right part, icon list in browser) and for TGListTree (left part of the browser) classes. That will allow to user to extend browser functionality. Another point is key-handling in console/terminal window. Everything is done in http://root.cern.ch/root/htmldoc/src/TRint.cxx.html#TRint:HandleTermInput It would be interesting to use signal-slots here, e.g. derive TApplication from TObject and TQObject and add signals which used for example in http://root.cern.ch/root/htmldoc/TGTextEntry.html That also make it easy dublication of console/terminal input to "somewhere", e.g. GUI window. Since mods in TApplication touches the basement of ROOT we must be very carefull here. Hopefully it will be done. Regards. Valeriy zaldy wrote: > > Dear All, > > How can we implement signal control in root? For example pressing the key > Cntrl-q....could mean a pause of a certain application. And from it I one > can press the menus of the browser for print command. > > I read the manual about bottons and widget applications; they are very > interesting but I have to start from scratch. In the mean time that I am > now running root, I wanted to implement 2 or 3 "keyboard" press to > control the running program. > > Do you know of the some simple procedures or routines to start with? > Appreciate your answers... > > -- > > -------------------------------------------------------- > Zaldy A. Nawang > PS Users Room 2 > Yon Gokan, > E362, Neutrino Group, > IPNS, KEK, > Japan > > e-mail: zaldy@neutrino.kek.jp > Tel. No. : (81) 029864 - 5387 > --------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET