Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Jim,
since then I have checked and main VFP window (_screen) can also reproduce this. VFP is not prepare to handle the case, when one of its window is minimized first by AppBar button, but restored programatically.
I also curious why it is, at all.
bb
>Hi Bela,
>
>I just want to let you know that I have experienced similar intermittent oddities with windows of various applications, Like Word 2000, Word XP, IE6, viewing Hacker's Guide, etc.
>
>In at least one case I do remember something strange in the upper-left catching my eye and I remember that a Max/Min through the Start Bar would show the 'trail' that it was being minned/maxed but always strangely. I finally get those oddities "fixed" by using one of the options in the Start Bar popup (Maximize, I think).
>
>I **DO** make frequent use of "Show Desktop" so I will be on the lookout to try to learn if that is somehow connected to these events.
>
>cheers
>
>
>>Dear All!
>>
>>Please confirm this strange VFP behaviour:
>>
>>if a top-level window is minimized by the taskbar "Show/hide desktop" button, then it is impossible to restore the form to its original size and position programatically. Instead the form will be displayed as a very small "Titlebar only" window.
>>Important: it is reproduceable in the case only, if you follow these steps. Other way, like clicking on the Min button, you cannot reproduce this bug.
>>
>>Steps to reproduce:
>>
>>1. Create a new form. Set ShowWindow to 2 (As Top-level) and Autocenter to .T.
>>2. Put a disabled timer on it, with 5000ms interval. Let the name of it: ShowAgainTimer
>> The timer event contains the following:
>>
>> this.enabled=.F.
>> if thisform.WindowState=1
>> thisform.WindowState=0
>> endif
>>
>>3. Put into the form Resize event the followings:
>>
>> if thisform.WindowState=1
>> thisform.ShowAgainTimer.enabled=.T.
>> endif
>>
>>4. Save the form, and run it. The form willbe shown up in the center of the desktop.
>>
>>5. Click on the taskbar "Show/hide desktop" button. Notice that all window will be minimezed into the taskbar.
>> (The test form's timer will be fired in 5sec and it will try to restore the vfp form)
>> But the VFP form wil not be restored to its original size and position, instead it will be shown as a very smallsized window on the left upper corner of the Windows desktop.
>>
>>
>>I have checked on VFP6 and VFP8.
>>(The credit for discovering this strange bug/feature goes to Mr Curt Burdick.)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement