Changeset 1074 in Sophya


Ignore:
Timestamp:
Jul 17, 2000, 7:14:57 PM (25 years ago)
Author:
ercodmgr
Message:

Pb de XmForm fenetre principale sur Linux-PPC , Reza 17/7/2000

Location:
trunk/SophyaPI/PI
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Tests/pitcons.cc

    r474 r1074  
    102102PITApp::~PITApp()
    103103{
     104  MainWin()->Hide();  // Pb de plantage de ~PIConsole(), delete mScb , 07/2000
     105  //  cerr << " Deleting scons ... \n " << endl;
    104106  if (scons) delete scons;
     107  //  cerr << " Deleting cons ... \n " << endl;
    105108  if (cons) delete cons;
     109  //  cerr << " end of  PITApp::~PITApp()... \n " << endl;
    106110
    107111
  • trunk/SophyaPI/PI/piapplx.cc

    r458 r1074  
    11#include <stdio.h>
    22#include <X11/cursorfont.h>
     3#include <X11/IntrinsicP.h>
    34#include "piapplx.h"
    45#include "picontainerx.h"
     
    4243};
    4344
     45
    4446/* --Methode-- */
    4547PITopContAppX::PITopContAppX(PIContainer *par, char *nom, PIWdg* topw, int sx, int sy, int px, int py)
     
    5961{
    6062if ((sx <10) || (sy < 10) ) return;
     63
     64int px = XPos();
     65int py = YPos();
    6166#if !defined(SunOS)
    6267// Probleme sur Sun - Reza 10/99
    63 mTopWdg->SetSize(sx+XPos(), sy+YPos());
    64 #endif
    65 Parent()->SetSize(sx+XPos(), sy+YPos());
     68mTopWdg->SetSize(sx+px, sy+py);
     69#endif
     70
     71XtConfigureWidget(Parent()->XtWdg(),  0, 0, sx+px, sy+py, 0);
     72
     73// Parent()->SetPos(0, 0);
     74// Parent()->SetSize(sx+px, sy+py);
    6675// PIContainer::SetSize(sx, sy);   Probleme sur Sun - Reza 9/08/99
     76
     77XtConfigureWidget(XtWdg(),  px, py, sx, sy, 0);
     78
     79// SetPos(px, py);
     80// PIContainer::SetSize(sx, sy);
    6781}
    6882
     
    112126MBCont()->Show();
    113127//DBG printf("PIApplicationX-DBG2:: MBContSize=%d %d \n", MBCont()->XSize(), MBCont()->YSize());
    114 //DBG printf("PIApplicationX-DBG2:: topcontSize=%d %d \n", MainWin()->XSize(), MainWin()->YSize());
     128
    115129
    116130topcont->Show();
     
    164178// Pour appeler FinishCreate() des objets dans la fenetre principale
    165179if (mStop) { // C'est la premiere fois
    166   topwdg->SetSize(MBCont()->XSize(), MBCont()->YSize());
     180  topcont->SetSize(topcont->XSize(), topcont->YSize());
     181  // topwdg->SetSize(MBCont()->XSize(), MBCont()->YSize());
    167182  MBCont()->FinishCreate();   
    168183  }
  • trunk/SophyaPI/PI/picontainerx.cc

    r425 r1074  
    1717  CreateXtWdg(nom, xmFormWidgetClass , NULL, sx, sy, px, py);
    1818  int fbase = PIXMFORMFRACBASE ;  // Valeur de XmNfractionBase des XmForm ds PIContainerX
    19   Arg  wargs[2];
     19  Arg  wargs[5];
    2020  int n=0;
    2121  XtSetArg(wargs[n],XmNfractionBase, fbase);  n++;
     22  XtSetArg(wargs[n],XmNhorizontalSpacing, 0);  n++;
     23  XtSetArg(wargs[n],XmNverticalSpacing, 0);  n++;
    2224  XtSetValues(XtWdg(), wargs, n);
    2325  }
     
    3537  CreateXtWdg(nom, xmFormWidgetClass , parwdg->XtWdg(), sx, sy, px, py);
    3638  int fbase = PIXMFORMFRACBASE ;  // Valeur de XmNfractionBase des XmForm ds PIContainerX
    37   Arg  wargs[2];
     39  Arg  wargs[5];
    3840  int n=0;
    3941  XtSetArg(wargs[n],XmNfractionBase, fbase);  n++;
     42  XtSetArg(wargs[n],XmNhorizontalSpacing, 0);  n++;
     43  XtSetArg(wargs[n],XmNverticalSpacing, 0);  n++;
    4044  XtSetValues(XtWdg(), wargs, n);
    4145  }
  • trunk/SophyaPI/PI/piwdgx.cc

    r1034 r1074  
    398398int frpos = 0;
    399399float frac;
    400 Arg  wargs[9];
     400Arg  wargs[13];
    401401int n=0;
    402402
     
    417417    frpos = frac*fbase;
    418418    XtSetArg(wargs[n],XmNleftPosition, frpos );  n++;
     419    XtSetArg(wargs[n],XmNleftOffset, 0 );  n++;
    419420    break;
    420421  default :
     
    438439    frpos = frac*fbase;
    439440    XtSetArg(wargs[n],XmNtopPosition, frpos );  n++;
     441    XtSetArg(wargs[n],XmNtopOffset, 0 );  n++;
    440442    break;
    441443  default :
     
    459461    frpos = frac*fbase;
    460462    XtSetArg(wargs[n],XmNrightPosition, frpos );  n++;
     463    XtSetArg(wargs[n],XmNrightOffset, 0 );  n++;
    461464    break;
    462465  default :
     
    481484    frpos = frac*fbase;
    482485    XtSetArg(wargs[n],XmNbottomPosition, frpos );  n++;
     486    XtSetArg(wargs[n],XmNbottomOffset, 0 );  n++;
    483487    break;
    484488  default :
Note: See TracChangeset for help on using the changeset viewer.