Changeset 3215 in Sophya for trunk/SophyaPI


Ignore:
Timestamp:
Apr 12, 2007, 11:48:32 AM (18 years ago)
Author:
ansari
Message:

Remplacement de XtResizeWidget/XtMoveWidget par XtMakeGeometryRequest (pour regler le problemes menu/bouton inactif... sur AIX et MacPowerPC), Reza 12/04/2007

Location:
trunk/SophyaPI/PI
Files:
4 edited

Legend:

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

    r2750 r3215  
    3838
    3939{
     40puts("xp0: Debut PITApp::PITApp(int narg, char* arg[]) ");
    4041//  Menus, les numeros ds AppendItem sont les numeros de messages
    4142//  qui seront passes a Process() et permettent d'identifier l'action
     
    9697  printf("xp0 : simple PI example program \n");
    9798  printf("  Usage : xp0 [Xt options] \n");
     99  exit(1);
    98100  }
    99101//  Creation de l'objet application et appel de Run()
     102puts("xp0: Creation objet Application PITApp ");
    100103PITApp * app = new PITApp(narg, arg);
    101104puts("appel de Application.Run() ... ");
  • trunk/SophyaPI/PI/piapplgen.cc

    r2615 r3215  
    6262:topcont(NULL), menubar(NULL), mState(0)
    6363{
     64  puts("DBG-PIApplicationGen::PIApplicationGen() ");
    6465curapp = this;   
    6566}
  • trunk/SophyaPI/PI/piapplx.cc

    r2615 r3215  
    114114mStop = true;
    115115
     116puts("PIApplicationX::PIApplicationX()_info : Appel topwdg = new PIWdgX(narg, arg);");
    116117
    117118topwdg = new PIWdgX(narg, arg);
     119puts("PIApplicationX::PIApplicationX()_info : topwdg OK ");
    118120
    119121int msx,msy;
     
    121123msy+=5;
    122124topwdg->SetSize(sx, sy+msy);
    123 //DBG printf("PIApplicationX-DBG:: Size=%d %d \n", topwdg->XSize(), topwdg->YSize());
     125printf("PIApplicationX-DBG:: Size=%d %d \n", topwdg->XSize(), topwdg->YSize());
    124126
    125127intcont = new PIContainerX((PIMsgHandler *)this, topwdg, "MBCont",
     
    141143                            sx, sy, 0, msy);
    142144MBCont()->Show();
    143 //DBG printf("PIApplicationX-DBG2:: MBContSize=%d %d \n", MBCont()->XSize(), MBCont()->YSize());
     145printf("PIApplicationX-DBG2:: MBContSize=%d %d \n", MBCont()->XSize(), MBCont()->YSize());
    144146
    145147
  • trunk/SophyaPI/PI/piwdgx.cc

    r2876 r3215  
    310310XtSetValues(this->sdw, wargs, 2);
    311311*/
     312/*  Modifs Reza Avril 2007, remplacement par XtMakeGeometryRequest
    312313XtResizeWidget(sdw, sx, sy, BorderWidth());
    313 
     314*/
     315XtWidgetGeometry wgeom;
     316wgeom.request_mode = CWWidth|CWHeight;
     317wgeom.width = sx;
     318wgeom.height = sy;
     319XtMakeGeometryRequest(sdw, &wgeom, NULL);
    314320return;
    315321}
     
    325331XtSetValues(this->sdw, wargs, 2);
    326332*/
     333/*  Modifs Reza Avril 2007, remplacement par XtMakeGeometryRequest
    327334XtMoveWidget(sdw, px, py);
    328 
     335*/
     336XtWidgetGeometry wgeom;
     337wgeom.request_mode = CWX|CWY;
     338wgeom.x = px;
     339wgeom.y = py;
     340XtMakeGeometryRequest(sdw, &wgeom, NULL);
    329341return;
    330342}
     
    662674//BUG ? - DEL top = XtVaAppInitialize(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res));
    663675top = XtOpenApplication(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res),
    664                           applicationShellWidgetClass, NULL, 0);
     676                          sessionShellWidgetClass, NULL, 0);
     677// Reza, Avril 2007 : applicationShell remplace par sessionShell 
     678//                    doc Lesstif dit que applicationShell est obsolete
     679//                        applicationShellWidgetClass, NULL, 0);
     680
    665681if (top == NULL) {
    666682  fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize()\n");
Note: See TracChangeset for help on using the changeset viewer.