Hi Ed, You can use gStyle->SetScreenFactor(factor); to specify a scale factor for the coordinates when creating a new canvas. Default is factor=1. You can play with factor=1.2, 1.4 if you have a large high resolution screen or vice-versa factor=0.8 if you have a low resolution screen. Unfortunately, the TControlBar constructor did not know about the Screenfactor parameter. I have added this feature in the current development version in CVS. Rene Brun Ed Oltman wrote: > > Hello, > > I have a root application that has a single TCanvas and 3 TContolbars. > Users of the application use a varity of screen sizes: 1024 x 768 through > 1600 x 1200. I would like the TControbar objects (vertical) on one side of > the screen - taking up as much space as needed and have the TCanvas on the > other side, using the remaining real estate. Obviously, the user can do > this themselves, but it would be nice if the windows could be positioned > programatically. I have experimented with the TCanvas and TControlbar ctors > position arguments, but I have not discovered the proper way to use them in > a screen-size independant fashion. > > At the moment I am using non-qt root v3.02/07 on win32. I am also very > interested in using the qt version. Any guidence here would be greatly > appreciated. Thanks! > > Ed Oltman > > -------------------------------------------------------------------------------- > > Name: winmail.dat > winmail.dat Type: application/ms-tnef > Encoding: base64
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET