I do this by posting an event to myself simulating that a button was
pressed. Works quite well.
Chris
Richard Coutts wrote:
>
> >> I have a generic dialog function for instantiating my dialog and for
> >> registering my handler. It works great, except that I want to add the
> >> behaviour that
>> I have a generic dialog function for instantiating my dialog and for
>> registering my handler. It works great, except that I want to add the
>> behaviour that if the user taps outside of the area of the dialog, the
>> dialog closes.
> By making it detect taps outside the bounds, it should
>
Two basic approaches come to mind. One is to write your own event loop for
your popup. That way, you can react to taps in any way you like. This isn't
that hard, but it's a little scary in that you might miss something that
FrmDoDialog does for you. The alternative I would consider is to use
FrmDo
- Original Message -
From: "Richard Coutts" <[EMAIL PROTECTED]>
> I have a generic dialog function for instantiating my dialog and for
> registering my handler. It works great, except that I want to add the
> behaviour that if the user taps outside of the area of the dialog, the
> dialo
I have a generic dialog function for instantiating my dialog and for
registering my handler. It works great, except that I want to add the
behaviour that if the user taps outside of the area of the dialog, the
dialog closes. (Essentially, its the same behavior when the user taps the
"Cancel" but