Results 1 to 8 of 8
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Dialogs / Hide (Word 2000)

    I'm working on an application in Word 2000 where about 15 or 18 custom dialogs are used, depending upon choices which users make. I'm finding that there is a display problem in that dialogs sometimes don't hide when the code frmDialog.Hide executes. I use the Hide method behind the command button that is intended to close the dialog, and I often repeat it a second (or third) time. I've even added DoEvents followed by Application.ScreenRefresh. Most dialogs are hidden as expected, but a few remain in place, and they "pile up." I suspect that his is more a display issue than a code execution issue, because if I drag one of these dialogs to move it, the dialog leaves a "trail" behind it.

    I've noticed that a dialog is more likely to remain visible if the dialog is not "dirtied" -- i.e., no check boxes or option buttons checked, no text entered in text boxes, etc.... the user clicks OK to continue without using any of the options on the dialog.

    I unload some dialogs, but other need to remain loaded because they might be displayed again or because it's necessary to get values from them at a later point in the code.

    Any suggestions on how to overcome this problem? It's messy looking for the user, particularly when larger dialogs remain behind smaller ones.

    Thanks,
    Richard Barrett

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Dialogs / Hide (Word 2000)

    Richard,

    It sounds like you're maxing out memory in some way, by having all those non-modal userforms open.

    15 to 18 custom dialogs is an awful lot to throw at a user anyway <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15>; is there any way to incorporate some of these separate ones together - for example by using multipage forms?

    Gary

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Dialogs / Hide (Word 2000)

    Hi Gary,

    This is a document assembly application for a will, and all of the dialogs are necessary. Different combinations of an even larger number of possible dialogs appear depending upon user choices. One of the problems here is that the main user of this uses 800 x 600 resolution (he insists upon it, regardless of the size of the monitor), so there's not much I can get on a single dialog. They also nixed the idea of multi-page dialogs, insisting that users would forget to visit the necessary pages.

    It's an odd situation here. The previous incarnation of this will assembly was written in WordPerfect 8, and was about a 10 step process. This will be a single step, but they have worries that such streamlining can only bring deficient results. The worry is unfounded, but.....

    I've been fairly successful with hiding the dialog more than one time in the code and ScreenRefreshing often, plus unloading as many dialogs as I can, putting values into variables for later use. This is working OK, although I hoped for a better solution.

    Thanks,
    Richard

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Dialogs / Hide (Word 2000)

    Richard,

    It does sound like unloading the dialogs whenever possible, and storing the data in global variables, is your best solution.

    Gary

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Dialogs / Hide (Word 2000)

    > They also nixed the idea of multi-page dialogs, insisting that users would forget to visit the necessary pages.

    If you structure it like a Wizard, where it is necessary to click Next or Cancel, I don't see how the users can get lost. But then, the client should know his employees, shouldn't he. <img src=/S/wink.gif border=0 alt=wink width=15 height=15>

  6. #6
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Dialogs / Hide (Word 2000)

    This is being managed by an attorney who is very irritated that the firm decided to give up WordPerfect. There's plenty of apprehension, as you might imagine.

    I've decided to break it into separate chunks. After complete the first part, a dialog will display announcing: "Part one has been completed. You may review and begin part two at any time."

    This is not what they wanted, but their previous Will was so complicated that only two or three people knew how to do it. Anyone will be able to do this, and perhaps the "breaks" will provide opportunity to pause and ask questions, etc. I think I can sell it on that point, or that an attorney can begin the process and finish a day or a week later. I think that makes more sense anyway.

    I'll keep a copy of the code with the "lingering" dialogs and show them what happened. Sometimes they can be reasonable.

  7. #7
    New Lounger
    Join Date
    Mar 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dialogs / Hide (Word 2000)

    You are not leaving Application.ScreenUpdating set to False are you? Probably not, but the trails when dragging the dialog around the screen make it sound like that kind of thing.
    Scott

  8. #8
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    922
    Thanks
    2
    Thanked 12 Times in 11 Posts

    Re: Dialogs / Hide (Word 2000)

    No, I've even made a point of setting ScreenUpdating to True just to be sure.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •