Board index » delphi » Equivalent to DisableDefault in Paradox's ObjectPAL?

Equivalent to DisableDefault in Paradox's ObjectPAL?

What is the ObjectPascal equivalent to the Paradox ObjectPAL
statement disableDefault?

In Paradox, the default action of the object normally does not
occur until after any custom code attached to the object is
executed.  By the use of disableDefault, enableDefault, and
doDefault, the programmer can control when the default action
happens, or whether it happens at all.

From my observation, this is not the way it happens in Delphi.
I have some code written in the onClick event handler for a
DBNavigator component, but this code is not being executed
until after the default action of the navigator button (moving
to the next/previous/first/last record) occurs.  How can I
get custom code to execute _before_ the DBNavigator performs
its default action of moving to a different record?
--
============================================================
Rick Carter   carte...@email.uc.edu   rcar...@tso.cin.ix.net
============================================================

 

Re:Equivalent to DisableDefault in Paradox's ObjectPAL?


On 13 Jun 1998 01:33:30 GMT, carte...@news.ececs.uc.edu (Richard

Quote
Carter) wrote:
>What is the ObjectPascal equivalent to the Paradox ObjectPAL
>statement disableDefault?

<snip>

Rick,
I have heard of only one way to do this, and I can't get it to work in
all cases. Use  KeyPreview = true to allow the keypress to be
intercepted in an OnClick event, for example. There have been some
posts here in the last year, so maybe you can find something at
dejanews.com by looking for 'keypreview'. Also, I remember several
posts on the dbNavigator--how to do some code before it does its
thing. I don't remember any answers, though :-(

Let us know if you find anything.

hth,
Dan

--
Dan Brennand
CMDC systems, inc.
Configuration Management and Document Control: Consulting, Software,
and the only comprehesive textbook on this subject.
visit us at www.cmdcsystems.com
[Remove the SPAM from my e-mail address]

Other Threads