Thanks in advance
--
Sincerely,
Dave Loveridge
<<
I have a table frame and I am using Lance Leonards Record Highlight code
>>
As I don't use that code it's very hard to give any advice unless you show
the code.
--
Bertil Isberg - CTECH
Paradox buglist:
online: http://w1.826.comhem.se/~u82608896/
FAQ newsgroup: corel.wpoffice.paradox-faq
"Dave Loveridge" wrote
:
: I have a table frame and I am using Lance Leonards Record Highlight code
and
: it works great (Thanks Lance). I also have some fields that are bound to
the
: same table and when I am on these fields and you move to a different
record
Do you mean that you have a tableframe, as well as bare fields on the form
(that are attached to the same table as the tableframe but not *in* hte
tableframe)?
And when in one of those bare fields and you move to a new record the
hilighting code doesn't work?
--
--
Paradox Support http://www.thedbcommunity.com/support/
Tony McGuire
_____________
This is attached to the table frames action method
; Now, highlight the selected record, if necessary
method action(var eventInfo ActionEvent)
if eventInfo.actionClass() = DataAction then
If not loHilite.isAssigned() then
return
endIf
; See if the record should be highlighted.
if loHilite = TRUE then
delayScreenUpdates( TRUE ) ; Make sure repaints happen at once
uiRec.Color = container.color ; Reset the record's color
loHilite = FALSE
doDefault ; Let the action take place
loHilite = TRUE
uiRec.attach( uiFld.containerName )
uiRec.color = HL_COLOR ; Highlight the current record
uiRec.Translucent = TRUE
delayScreenUpdates( False ) ; Allow repaints to happen now
endif
endif
EndMethod
This is attached to the tables close method
method close(var eventInfo Event)
uiRec.Color = Self.Color
endMethod
This is attached to the tables open method
method open(var eventInfo Event)
loHilite = FALSE
doDefault
;// Get first UI Field in tableframe and attach to it.
uiFld.attach( self.firstRow )
uiFld.attach( uiFld.first )
uiFld.attach( self.fullname + "." + uiFld.name )
;// Get UI Record in tableframe and attach to it.
uiRec.attach( uiFld.containerName )
loHilite = TRUE
endMethod
"Tony McGuire" <cng.paradoxcommunity@com> wrote in message
news:418ba9ad$1_3@cnews...
"Dave Loveridge" wrote
:
: Exactly!
:
Without focus, I'd be surprised if the code on the TF worked.
Likely Bertil can suggest a different/additional location/level to place the
code for your situation.
Denn Santoro
President
Resource Development Associates
http://www.RDAWorldWide.Com
Offices in the United States and Germany
Providing solutions to health care, business, governments and non-profits since
1982
"Dennis Santoro" <RDA...@RDAWorldWideSPAMFILTER.com> wrote in message
news:418BE6B7...@RDAWorldWideSPAMFILTER.com...
I strongly suggest you get my Database Basics paper and my Normalization paper
from our Paradox resources page (link in my signature). It will help you with a
lot of best practices and avoiding common pitfalls. Also pick up my
containership on forms paper while you are there
As for bare fields, fields bound to a table should always be contained in an MRO
(Mutlirecord object) or a TF (TableFrame). These objects contain a record object
(right click on one and look in the object explorer). Record objects handle
record level events (posts, unlocks etc.) and you need the default behaviors
they generate for controlling and managing the actions of your forms, your users
and your data. So get those fields inside a singe record MRO (SRO). You can link
it to the TF so the current active record in the TF is what is displayed in the
MRO. You will need to use table aliases though. See the database Basics paper
for more on that.
Thanks for your help,
Dave
Denn,
: and your data. So get those fields inside a singe record MRO (SRO). You
can link
: it to the TF so the current active record in the TF is what is displayed
in the
: MRO. You will need to use table aliases though. See the database Basics
paper
One-to-One between the TF and the 'bare fields' moving into a [M,S]RO, so
actual linking isn't possible.
Code to keep them in sync is needed.
UIObject.SetRange(FilterObject)
Do I need to do more than just this.
--
Sincerely,
Dave Loveridge
Loveridge Machine Co.
VP/Senior Programmer
4097 South West Temple
Murray, UT 84107
www.loveridgemachine.com
d...@loveridgemachine.com
Phone (801)-262-1414
Fax (801)-261-1818
"Dave Loveridge" <ddl.loveridgemachine@com> wrote in message
news:4190d868$1_1@cnews...