Make your own free website on Tripod.com

PFC Datawindow SetRowFocusIndicator service (21 jul 1997)

Back Up Next

Author: Eric Aling
Accessed:
Download: Download Services.zip ( services.zip, 5 Kb )

The n_cst_dwrowfocusindicator service. This is my first small datawindow service. It can be used to specify a picture to be the rowfocusindicator, without the need of having a picturecontrol.

To use within u_dw, declare an instance variable:

n_cst_dwnsrv_rowfocusindicator inv_rfi

Then, declare an object function:

integer of_setrowfocusindicator( ab_switch boolean )
if ab_switch then
	inv_rfi = create n_cst_dwnsrv_rowfocusindicator
	inv_rfi.of_SetDw(This)
else
	if isvalid(inv_rfi) then
		Destroy inv_rfi
	end if
end if
return 1

 

In the Destructor event of u_dw code:

this.of_SetRowFocusIndicator(False)

 

How to use this service with an u_dw datawindow control.In the constructor event code:

// Enable the rowfocusindicator

This.of_SetRowFocusIndicator(True)

// Use one of these three methods to initialize the service

 

// use default size of picture and place at (0,0)

This.inv_rfi.of_SetPictureName("ar_left.bmp") 

 

// use size of 16 by 16 pixels and place at (0,0)

This.inv_rfi.of_SetPictureName("ar_left.bmp",16,16,0,0) 

 

// use size of 16 by 16 pixels and place at (5,20)

This.inv_rfi.of_SetPictureName("ar_left.bmp",16,16,5,20)

 

// Start or stop the service

This.inv_rfi.of_SetIndicator(True)

This u_dw is also included in the services.pbl ( watch out if you have modified your own u_dw !! )

Back Up Next