David,

The dialog remove problem I had occurred when my dialog box didn't 
have an OKButton, which automatically dismisses the dialog, but 
rather a series of buttons that represented choices the user could 
make. The handler for each of these buttons had a dialog remove 
statement in it. However, the dialog was not graphically removed 
until I changed the structure of the program as follows:-

-Sub main calls dialog box procedure,
-button handlers contain dialog remove statement and set a variable 
indicating which button was selected,
-Sub main then evaluates variable with 'Do Case' and call another sub 
procedure which brings up a different dialog box

This worked for me although the easiest way to dismiss your dialog is 
with the OKButton if you can.

Hope this helps.

                               Keith.




> From:          [EMAIL PROTECTED]
> To:            "Keith Campbell" <[EMAIL PROTECTED]>
> Date:          Wed, 17 Nov 1999 16:59:26 -0600
> Subject:       Re: MI Re:Dialog Remove

> 
> 
> Hi, Keith,
> 
> Thanks a lot for your help. I still have difficulties in dealing with the
> 'dialog remove'. I put this command in a button control handler, and after that
> line, I have a new dialog open. I want to close the dialog where I click the
> button, and open the new dialog in the control handler sub. Could you give me
> some more detailed instruction on how to make the flow go back to the sub main?
> 
> Thanks a lot again,
> 
> David
> 
> 
> 
> 
> 
> "Keith Campbell" <[EMAIL PROTECTED]> on 11/17/99 01:28:59 PM
> 
> To:   David D Hou/IT/Corporate/Blockbuster@BBEGI
> cc:   [EMAIL PROTECTED]
> Subject:  MI Re:Dialog Remove
> 
> 
> 
> 
> David,
> 
> Here is the solution from the recent thread on the subject:-
> 
> "I've found that Ben Humphreys' (see below) suggestion does work.
> 
> > Then, in the same sub
> > routine that calle the first dialog, bring up another one in the
> > code right underneath it, the original one will disappear, and the
> > new one will take its place.
> 
> I did a little restructuring so that the flow returned to
> sub main after the first dialog, and then called the next dialog. And
> the initial dialog disappeared.
> 
> It seems rather strange that Dialog Remove doesn't work in all
> instances but at least my problem is solved. "
> 
> Regards,
> 
>                Keith
> 
> PS Hope you can follow this.
> Keith Campbell
> GIS Consultant
> W S Atkins Consultants Ltd
> UK
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
> 
> 
> 
> 
> 
Keith Campbell
GIS Consultant
W S Atkins Consultants Ltd
UK
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to