Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i highlight the current record of a table frame 1

Status
Not open for further replies.

SpaghettiStraps

Programmer
Apr 19, 2002
14
US
i see that in paradox 10 help it says there is a capability to highlight the current record -- but it doesn't explain how.

i have a 1-m-m-m form (all table frames) and would like the current record of the master form to remain highlighted as i move through the various sub-forms.

thanks.
 
Here's a thread I saved about this very topic.

----------------------------------------------

You need to add the following to the Var method for your tableFrame:

Var
uiRecord UIObject
endVar

Add the following two methods to the tableframe events Open and Action:

method open(var eventInfo Event)
doDefault
uiRecord.attach(self'firstRow)
self.home()
; or I sometimes use self.end()
; if I want to start at the end of the table
endmethod

method action(var eventInfo ActionEvent)
if eventInfo.actionClass() = DataAction then
uiRecord'color = Transparent
doDefault
uiRecord.attach(fldDate'containerName)
;change fldDate to some field in your tableFrame record
uiRecord'color = Yellow
endIf
endmethod

Then attach the following code to the open event for the record object
in your tableFrame:

method open(var eventInfo Event)
self.color = Transparent
endmethod

The only other thing to watch is to not name the record object in your
table frame, leave it with the Paradox generated name.

--------------------------------------

I haven't tried it, but it should work.

Mac :)

"Strange women lying in ponds and distributing swords is no basis for a system of government" - Dennis, age 37

mailto:langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top