Changeset 120 in Sophya for trunk/SophyaPI/PI/piwdgx.cc


Ignore:
Timestamp:
Jul 15, 1998, 7:08:53 PM (27 years ago)
Author:
ansari
Message:

Suite modifs DrawerTools, introduction de PIYfXDrawer, +debug Reza 15/07/98

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piwdgx.cc

    r114 r120  
    115115/* --Methode-- */
    116116int PIWdgX::CreateXtWdg(char *nom, SysDWdgClass wdgcl, SysDWdg pwdg,
    117                         int sx, int sy, int px, int py)
    118 {
    119 Arg  wargs[5];
     117                        int sx, int sy, int px, int py, Arg* oarg, int na)
     118{
     119Arg  wargs[20];
    120120int n=0;
    121121
     
    139139XtSetArg(wargs[n],XtNx,px);  n++;
    140140XtSetArg(wargs[n],XtNy,py);  n++;
     141
     142if (na > 16) { printf("PIWdgX::CreateXtWdg()/Warning: na=%d > Max=16 \n", na);  na = 16; }
     143for(int kk=0; kk<na; kk++) { wargs[n] = oarg[kk]; n++; }
    141144
    142145if (wdgcl == NULL)  wdgcl = coreWidgetClass;
Note: See TracChangeset for help on using the changeset viewer.