Subject Re: ColorScheme details - OnDelete
Author stanw1950
You might also just use the DeletingColor from the IbSession
component. In the before delete do something like:

for i := 0 to ComponentCount - 1 do begin
if (Components[i] is Tib_Edit then
Tib_Edit(Components[i].Color := IBSessionProp.DeletingColor;
end;

In the after delete just change the components back to their normal
color.

Stan




--- In IBObjects@yahoogroups.com, "Ryan Nilsson-Harding"
<nilsson@b...> wrote:
> Hi there,
>
> I have customized dialogs throughout my app, and setting a
> TIB_Query's ConfirmDeletePrompt causes a standard windows dialog to
> appear.
>
> Insetad I use the BeforeDelete event to ask the user, using one of
> my own forms, but doing this prevents the relevant fields to go red
> as they used to.
>
> Is there any way I can tap into either getting IBO to use my form's
> for these messages, or a way to induce the same ColorScheme?
>
> Thanks for any info,
> -Ryan