Changeset 6 for trunk/txlib/txwidget.c

Show
Ignore:
Timestamp:
12/13/05 20:55:09 (3 years ago)
Author:
jvw
Message:

Fixed set focus for [OK] on WidgetDialog?; removed binaries from repository

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/txwidget.c

    r1 r6  
    376376         title, txwstd_footer, 
    377377         &window); 
    378       window.dlgFocusID = gwdata->basewid + focus;      // field to get focus 
     378 
     379      if ((focus < gwdata->count) && 
     380          (gwdata->widget[focus].winid != 0))   // explicit window-ID 
     381      { 
     382         window.dlgFocusID = gwdata->widget[focus].winid; 
     383      } 
     384      else                                      // calculated window-ID 
     385      { 
     386         window.dlgFocusID = gwdata->basewid + focus; // field to get focus 
     387      } 
    379388      window.st.buf     = NULL;                 // NO artwork attached 
    380389      pframe = txwCreateWindow( parent, TXW_CANVAS, 0, 0, &window, NULL);