Changeset 6 for trunk/txlib

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

Location:
trunk/txlib
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/txvers.h

    r5 r6  
    4040// Originally developed for LPTool/DFSee utilities, open-sourced in 2005 
    4141// 
    42 #define TXLIB_V "1.04 12-12-2005" // JvW Fixed ValidateScript desc for 1-liner 
     42#define TXLIB_V "1.05 13-12-2005" // JvW Fix set focus on [OK] in WidgetDialog 
     43//efine TXLIB_V "1.04 12-12-2005" // JvW Fixed ValidateScript desc for 1-liner 
    4344//efine TXLIB_V "1.03 08-12-2005" // JvW Home/End in SBVIEW now PgLeft/PgRight 
    4445//efine TXLIB_V "1.02 02-12-2005" // JvW Add EventHook/Async Input functions 
  • 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);