from Delphi Help:
property DisableIfNoHandler: Boolean;
Description
DisableIfNoHandler specifies whether the Enabled
property of client components should be set to False
if no handler can be found for the action.
When the user triggers one of the actions clients,
the application makes a series of attempts to
determine how the action should respond. This includes
checking a number of event handlers, and, if it fails
to find an event handler, locating a target control
and checking for a predefined response that applies to
that target control. When DisableIfNoHandler is True,
if the application completes this sequence without
finding any way for the action to respond to the user
input, The actions Enabled property is set to False.
In addition, for some predefined actions,
DisableIfNoHandler causes the action to disable itself
if an event handler is required for the action to
perform a meaningful task. For example, if you do not
supply an OnAccept event handler to TFileOpen, then if
DisableIfNoHandler is True, the action disables itself
because there is no way for the application to respond
when the user selects a file name in the dialog.
--- jniaj <[EMAIL PROTECTED]> wrote:
> I am developing a user control that disables the
> main form actions
> according to the user permissions.
> All the database activity is done with the Standard
> Dataset Actions
> (TDataSetEdit, TDataSetDelete, etc).
> The problems arises when the user enters a form full
> of TDB...
> controls: the actions are automatically enabled,wich
> is a normal
> characteristic of the TDataSet actions.
> How can I solve this, without having to modify all
> the database aware
> forms in all my apps?
>
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hbphftv/M=362131.6882499.7825260.1510227/D=groups/S=1705115362:TM/Y=YAHOO/EXP=1123115565/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~->
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/delphi-en/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/