Changeset 210 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
Mar 3, 1999, 7:32:48 PM (27 years ago)
Author:
ercodmgr
Message:

Positionnement fenetres, nouvelles commandes (piapp), Gestion fenetre des options Histo-2D Reza 03/03/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r205 r210  
    515515char buff[64];
    516516mWId++;
    517 sprintf(buff, "PI-GraphicWin (%d)",mWId);
    518 PIZoneWindow* win = new PIZoneWindow(this,  buff, PIWK_normal, nx, ny, sx, sy, 0, 0);
     517int px, py;
     518MainWin()->GetScreenPos(px, py);
     519sprintf(buff, "PI-GraphicWin (%d)",mWId);
     520PIZoneWindow* win = new PIZoneWindow(this,  buff, PIWK_normal, nx, ny, sx, sy, px+MainWin()->XSize()+30, 0);
    519521win->SetUserData(NULL, ny*10+nx);  // UserFlag= nY*10 + nX 
    520522mWList[mWId*10+1] = (PIWindow*)win;
     
    531533char buff[64];
    532534mWId++;
     535int px, py;
     536MainWin()->GetScreenPos(px, py);
    533537sprintf(buff, "PI-StackWin (%d)",mWId);
    534 PIStackWindow* win = new PIStackWindow(this,  buff, PIWK_normal, sx, sy, 0, 0);
     538PIStackWindow* win = new PIStackWindow(this,  buff, PIWK_normal, sx, sy, px+MainWin()->XSize()+30, 100);
    535539win->SetUserData(NULL, 9999);  // UserFlag= 9999
    536540mWList[mWId*10+2] = (PIWindow*)win;
     
    576580  default :      // Fenetre ordinaire
    577581    {
     582    int pwx, pwy;
     583    MainWin()->GetScreenPos(pwx, pwy);
    578584    if ( (sx < 50) && (sy < 50) )   sx = sy = 300+mFgScSz*100;
    579     rw = new PIWindow(this,  nom, PIWK_normal, sx, sy, 0, 0);
     585    rw = new PIWindow(this,  nom, PIWK_normal, sx, sy, pwx+MainWin()->XSize()+30, 300);
    580586    rw->SetUserData(NULL, 0);  // UserFlag= 0
    581587    mWId++;
Note: See TracChangeset for help on using the changeset viewer.