Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't restoring minimized window - Is it bug?
Message
From
31/07/2003 23:58:56
 
 
To
31/07/2003 16:08:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00815569
Message ID:
00815735
Views:
10
>What is the name of the icon right beside the START button, bottom of the desktop? (If you click on it, all opened window close down into the app.bar)

I don't have a button next to the Start Button - just empty space where the icons show up for running programs.

>I have hungarian Win2K, so I do not know the exact english phrase of the name for this button.
>
>bb
>
>>What version of Windows are you using. I can't reproduce the problem with VFP8 on WinXP. Also, I don't have a "Show/Hide Desktop" button, but I do have a right click "Minimize all" menu item.
>>
>>Alan
>>
>>>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.)
Previous
Reply
Map
View

Click here to load this message in the networking platform