home *** CD-ROM | disk | FTP | other *** search
-
-
- twBRBrowse() Cargo Structure
-
-
- When using actionkeys or mouse hot spots,
- it is very common to obtain a reference to
- the browse with twBRGetBrowse() and modify
- the browse behaviour from outside. This
- cargo structure is provided in order that
- the programmer has complete control over
- the browse structure at all times, even
- when the browse is active.
-
- An example might be to use a PreRun block
- to define column ColorBlocks or use a
- different title color for the browse
- than the default text colour, eg.,
-
- bPreRun := {|x,y| twTitle( "Title", "n/w",
- "T", "C" ),;
- x := twBRGetBrowse(), ;
- y := x:GETCOLUMN( 2 ),;
- y:colorblock := {|| { 5, 2 } },;
- y := x:GETCOLUMN( 3 ),;
- y:colorblock := {|| ;
- IIF( Part->POnHand > 500, ;
- { 1, 2 }, ;
- IIF( Part->POnHand < 100, ;
- { 7, 2 }, { 6, 2 } )) },;
- x:ColPos := 1 }
-
-
- NOTE: Some of the setting in the above
- example may be set up in the column
- definition.
-
- See TSDWIN.NG for more details
-
-
-
-
-