Changeset 9 for trunk/txlib

Show
Ignore:
Timestamp:
01/05/06 13:45:22 (3 years ago)
Author:
jvw
Message:

Added usrdata ptr to txwWidgetDialog()
Topline feedback on alt-/ trace toggle

Location:
trunk/txlib
Files:
24 removed
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/txlib/include/txwin.h

    r1 r9  
    18791879   TXWHANDLE           owner,                   // IN    owner  window 
    18801880   TXWINPROC           dlgproc,                 // IN    dialog proc or NULL 
     1881   void               *usrdata,                 // IN    window data (QWP_USER) 
    18811882   char               *title,                   // IN    title for the dialog 
    18821883   ULONG               flags,                   // IN    specification flags 
  • trunk/txlib/txvers.h

    r7 r9  
    4040// Originally developed for LPTool/DFSee utilities, open-sourced in 2005 
    4141// 
    42 #define TXLIB_V "1.05 29-12-2005" // JvW Fixed Radio-repaint bug on (x == TRUE) 
     42#define TXLIB_V "1.06 05-01-2006" // JvW Topline feedback on alt-/ trace toggle 
     43//efine TXLIB_V "1.06 05-01-2006" // JvW Added usrdata ptr to txwWidgetDialog() 
     44//efine TXLIB_V "1.05 29-12-2005" // JvW Fixed Radio-repaint bug on (x == TRUE) 
    4345//efine TXLIB_V "1.05 27-12-2005" // JvW Made O_BINARY default for Linux files 
    4446//efine TXLIB_V "1.05 13-12-2005" // JvW Fix set focus on [OK] in WidgetDialog 
  • trunk/txlib/txwdraw.c

    r7 r9  
    15261526         TxwAC( cDskTraceStand, color)); 
    15271527 
    1528       #if defined (HAVETHREADS) 
    1529          txwSignalEventHook( TXHK_DSKTOPLN, dskTop); 
     1528      #if defined (NEVER)                       // recursion problem with TRACE 
     1529         txwSignalEventHook( TXHK_DSKTOPLN,     // since PostMsg traces too 
     1530                             dskTop); 
    15301531      #endif 
    15311532 
  • trunk/txlib/txwidget.c

    r7 r9  
    312312   TXWHANDLE           owner,                   // IN    owner  window 
    313313   TXWINPROC           dlgproc,                 // IN    dialog proc or NULL 
     314   void               *usrdata,                 // IN    window data (QWP_USER) 
    314315   char               *title,                   // IN    title for the dialog 
    315316   ULONG               flags,                   // IN    specification flags 
     
    391392      if ((rc = txwCreateWidgets( pframe, gwdata, 1, 1)) == NO_ERROR) 
    392393      { 
    393          rc = txwDlgBox( parent, owner, (dlgproc) ? dlgproc : txwDefDlgProc, 
    394                          pframe, NULL); 
     394         rc = txwDlgBox( parent, owner, 
     395                        (dlgproc) ? dlgproc : txwDefDlgProc, 
     396                         pframe, usrdata); 
    395397      } 
    396398   } 
  • trunk/txlib/txwproc.c

    r7 r9  
    208208               txwPostMsg(   hwnd, TXWM_ACTIVATE, TRUE, 0); 
    209209            } 
     210            txwSetWindowPtr( hwnd, TXQWP_USER, (void *) mp2); // user data 
    210211            break; 
    211212 
     
    555556 
    556557               case TXa_SLASH:                  // toggle trace value 
    557                   switch (TxTrLevel) 
    558                   { 
    559                      case 0:  TxTrLevel = 1;   break; 
    560                      case 1:  TxTrLevel = 100; break; 
    561                      default: TxTrLevel = 0;   break; 
     558                  switch (TxTrLevel)            // and slowdown delay 
     559                  { 
     560                     case 0: 
     561                        TxTrLevel    = 1; 
     562                        break; 
     563 
     564                     case 1: 
     565                        TxTrLevel    = 100; 
     566                        if (TxQueryLogFile( NULL, NULL) != NULL) 
     567                        { 
     568                           TXLN line; 
     569 
     570                           sprintf( line, "Tracing to: %s ", TxQueryLogName()); 
     571                           txwSetDesktopTopLine( line, cSchemeColor); 
     572                        } 
     573                        else if (TxTrLogOnly == FALSE) 
     574                        { 
     575                           txwSetDesktopTopLine( "Tracing to SCREEN ...      ", 
     576                                                  cSchemeColor); 
     577                        } 
     578                        else 
     579                        { 
     580                           txwSetDesktopTopLine( "Tracing to nowhere ...     ", 
     581                                                  cSchemeColor); 
     582                        } 
     583                        break; 
     584 
     585                     default: 
     586                        TxTrLevel    = 0; 
     587                        TxTrSlowDown = 0; 
     588                        txwSetDesktopTopLine( "Tracing stopped, no delay ... ", 
     589                                               cSchemeColor); 
     590                        break; 
    562591                  } 
    563592                  break; 
     
    13671396   ENTER(); 
    13681397 
     1398   TRACES(( "Frame hwnd:%8.8lx  dlgproc:%8.8lx  cData:%8.8lx\n", dlg, dlgproc, cData)); 
     1399 
    13691400   //- to be refined (long term) create dialog from template instead of 
    13701401   //- complete dialog frame + controls setup with CreateWindow