Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calendar controls move all around (Word 2000/SR1)

    Attached is a MS Word doc with a simple form that contains a five tab form and on page5 are three calendars. If one moves to another page and then back to page 5 two of the calendars move off the dialog. Clicking each of the moved calendars will place them where they were. The calendar is the ocx control MSCAL.ocx version 8.0
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calendar controls move all around (Word 2000/SR1)

    I opened the doc in Word 97 SR2 and in Word 2002 SP-2; the calendars didn't budge in either version however often I switched back and forth between tab pages.
    There is something strange, though: in Word 2002, Calendar1 and Calendar2 appear to have the font size 2 for day, grid and title, while the font sizes appear to be normal in Word 97.

  3. #3
    3 Star Lounger
    Join Date
    Nov 2002
    Posts
    387
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calendar controls move all around (Word 2000/SR1)

    Yes I notice it does not happen in Word 2002 or Word 2003( beta) but it does occur in Word 2000. Do you have Word 2000 you can try it with? Thanks

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calendar controls move all around (Word 2000/SR1)

    Hi Jim:
    I can verify that in Word 2000, the calendars indeed jump off the form. However, I am not a VBA expert & don't know why. (Well, I do know why I'm not a VBA expert. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)

  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: Calendar controls move all around (Word 2000/SR1)

    I get the same annoying behavior with 2000 SP2. The redraw is relative to the whole screen rather than the Page. I don't know where the error is (in MSForms, the control, Word, Windows...) but I was able to find a workaround:
    <pre>Private Sub MultiPage1_Change()
    'For the 5th tab, we SetFocus on each control to get a
    ' good redraw (it's a 0 based collection)
    If Me.MultiPage1.Value <> 4 Then Exit Sub
    Dim ctl As MSForms.Control
    For Each ctl In Me.MultiPage1.Pages(4).Controls
    ctl.SetFocus
    Next
    Set ctl = Nothing
    End Sub</pre>

    There's a tiny bit of screen flash on my system, but it's way better than the alternative!

Posting Permissions

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