home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / t / tw21l.exe / CARHLP.DOC < prev    next >
Text File  |  1993-02-06  |  1KB  |  43 lines

  1.  
  2.  
  3.                 twBRBrowse() Cargo Structure
  4.  
  5.  
  6.         When using actionkeys or mouse hot spots,
  7.         it is very common to obtain a reference to
  8.         the browse with twBRGetBrowse() and modify
  9.         the browse behaviour from outside. This
  10.         cargo structure is provided in order that
  11.         the programmer has complete control over
  12.         the browse structure at all times, even
  13.         when the browse is active.
  14.  
  15.         An example might be to use a PreRun block
  16.         to define column ColorBlocks or use a
  17.         different title  color for the browse
  18.         than the default text colour, eg.,
  19.  
  20.         bPreRun := {|x,y| twTitle( "Title", "n/w",
  21.                                       "T", "C" ),;
  22.                      x := twBRGetBrowse(), ;
  23.                      y := x:GETCOLUMN( 2 ),;
  24.                      y:colorblock := {|| { 5, 2 } },;
  25.                      y := x:GETCOLUMN( 3 ),;
  26.                      y:colorblock := {|| ;
  27.                      IIF( Part->POnHand > 500, ;
  28.                           { 1, 2 }, ;
  29.                           IIF( Part->POnHand < 100, ;
  30.                           { 7,  2 }, { 6, 2 } )) },;
  31.                      x:ColPos := 1 }
  32.  
  33.  
  34.         NOTE: Some of the setting in the above
  35.               example may be set up in the column
  36.               definition.
  37.  
  38.            See TSDWIN.NG for more details
  39.  
  40.  
  41.  
  42.  
  43.