Can I get an example of tsbrowse+ADS+TDatabase objects

Can I get an example of tsbrowse+ADS+TDatabase objects

Postby RAMESHBABU » Thu Nov 06, 2008 1:39 pm

Hi all

As per subject.

Regards.,

Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Example

Postby TimStone » Sat Nov 08, 2008 1:24 am

// Create the BROWSE
REDEFINE BROWSE oLbxin ID 716 OF oDiw ON CHANGE oDiw:update( ) UPDATE
oLbxin:setoDBF( oInv )
add column to oLbxin header "Part" data oInv:invnum ALIGN 0,1 size 150
add column to oLbxin Header "Description" data oInv:invdes ALIGN 0,1 size 300
add column to oLbxin header "Cross Ref." data oInv:invcod ALIGN 0,1 size 150
add column to oLbxin header "On Hand" data oInv:invstk ALIGN 2,1 size 90
add column to oLbxin Header "Charge" data oInv:invchg ALIGN 2,1 size 90
add column to oLbxin Header "Location" data oInv:invloc ALIGN 0,1 size 90
oLbxin:nLineStyle:=0
oLbxin:nHeightCell += 4
oLbxin:nHeightHead += 6
oLbxin:lNoHScroll := .T.
oLbxin:setColor( {1}, {CLR_BROWSETEXT} ) // cell text color
oLbxin:setColor( {4}, {{ CLR_HEADERTOP, CLR_HEADERBOT }} ) // degraded headers background color
oLbxin:setColor( {14}, {{ CLR_HEADERTOP, CLR_HEADERBOT }} ) // degraded headers background color
// Show alternating color in rows
lClrFlag:=.f.
oLbxin:bSkip := {|nRecs| nRecs := oInv:skipper( nRecs) }
oLbxin:setColor( {2}, {{|| IIF(ADSKeyNo() % 2 == 0, CLR_PANE1, CLR_PANE2 ) }} )
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby RAMESHBABU » Sat Nov 08, 2008 5:27 am

Mr.Tim,

Thank you very much. This is what exactly what I am looking for.

Regards,

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 614
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 58 guests