Changeset 1074 in Sophya
- Timestamp:
- Jul 17, 2000, 7:14:57 PM (25 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Tests/pitcons.cc
r474 r1074 102 102 PITApp::~PITApp() 103 103 { 104 MainWin()->Hide(); // Pb de plantage de ~PIConsole(), delete mScb , 07/2000 105 // cerr << " Deleting scons ... \n " << endl; 104 106 if (scons) delete scons; 107 // cerr << " Deleting cons ... \n " << endl; 105 108 if (cons) delete cons; 109 // cerr << " end of PITApp::~PITApp()... \n " << endl; 106 110 } 107 111 -
trunk/SophyaPI/PI/piapplx.cc
r458 r1074 1 1 #include <stdio.h> 2 2 #include <X11/cursorfont.h> 3 #include <X11/IntrinsicP.h> 3 4 #include "piapplx.h" 4 5 #include "picontainerx.h" … … 42 43 }; 43 44 45 44 46 /* --Methode-- */ 45 47 PITopContAppX::PITopContAppX(PIContainer *par, char *nom, PIWdg* topw, int sx, int sy, int px, int py) … … 59 61 { 60 62 if ((sx <10) || (sy < 10) ) return; 63 64 int px = XPos(); 65 int py = YPos(); 61 66 #if !defined(SunOS) 62 67 // Probleme sur Sun - Reza 10/99 63 mTopWdg->SetSize(sx+XPos(), sy+YPos()); 64 #endif 65 Parent()->SetSize(sx+XPos(), sy+YPos()); 68 mTopWdg->SetSize(sx+px, sy+py); 69 #endif 70 71 XtConfigureWidget(Parent()->XtWdg(), 0, 0, sx+px, sy+py, 0); 72 73 // Parent()->SetPos(0, 0); 74 // Parent()->SetSize(sx+px, sy+py); 66 75 // PIContainer::SetSize(sx, sy); Probleme sur Sun - Reza 9/08/99 76 77 XtConfigureWidget(XtWdg(), px, py, sx, sy, 0); 78 79 // SetPos(px, py); 80 // PIContainer::SetSize(sx, sy); 67 81 } 68 82 … … 112 126 MBCont()->Show(); 113 127 //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 115 129 116 130 topcont->Show(); … … 164 178 // Pour appeler FinishCreate() des objets dans la fenetre principale 165 179 if (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()); 167 182 MBCont()->FinishCreate(); 168 183 } -
trunk/SophyaPI/PI/picontainerx.cc
r425 r1074 17 17 CreateXtWdg(nom, xmFormWidgetClass , NULL, sx, sy, px, py); 18 18 int fbase = PIXMFORMFRACBASE ; // Valeur de XmNfractionBase des XmForm ds PIContainerX 19 Arg wargs[ 2];19 Arg wargs[5]; 20 20 int n=0; 21 21 XtSetArg(wargs[n],XmNfractionBase, fbase); n++; 22 XtSetArg(wargs[n],XmNhorizontalSpacing, 0); n++; 23 XtSetArg(wargs[n],XmNverticalSpacing, 0); n++; 22 24 XtSetValues(XtWdg(), wargs, n); 23 25 } … … 35 37 CreateXtWdg(nom, xmFormWidgetClass , parwdg->XtWdg(), sx, sy, px, py); 36 38 int fbase = PIXMFORMFRACBASE ; // Valeur de XmNfractionBase des XmForm ds PIContainerX 37 Arg wargs[ 2];39 Arg wargs[5]; 38 40 int n=0; 39 41 XtSetArg(wargs[n],XmNfractionBase, fbase); n++; 42 XtSetArg(wargs[n],XmNhorizontalSpacing, 0); n++; 43 XtSetArg(wargs[n],XmNverticalSpacing, 0); n++; 40 44 XtSetValues(XtWdg(), wargs, n); 41 45 } -
trunk/SophyaPI/PI/piwdgx.cc
r1034 r1074 398 398 int frpos = 0; 399 399 float frac; 400 Arg wargs[ 9];400 Arg wargs[13]; 401 401 int n=0; 402 402 … … 417 417 frpos = frac*fbase; 418 418 XtSetArg(wargs[n],XmNleftPosition, frpos ); n++; 419 XtSetArg(wargs[n],XmNleftOffset, 0 ); n++; 419 420 break; 420 421 default : … … 438 439 frpos = frac*fbase; 439 440 XtSetArg(wargs[n],XmNtopPosition, frpos ); n++; 441 XtSetArg(wargs[n],XmNtopOffset, 0 ); n++; 440 442 break; 441 443 default : … … 459 461 frpos = frac*fbase; 460 462 XtSetArg(wargs[n],XmNrightPosition, frpos ); n++; 463 XtSetArg(wargs[n],XmNrightOffset, 0 ); n++; 461 464 break; 462 465 default : … … 481 484 frpos = frac*fbase; 482 485 XtSetArg(wargs[n],XmNbottomPosition, frpos ); n++; 486 XtSetArg(wargs[n],XmNbottomOffset, 0 ); n++; 483 487 break; 484 488 default :
Note:
See TracChangeset
for help on using the changeset viewer.