Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Clear meaning
Message
From
05/10/1997 22:23:39
 
 
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00052178
Message ID:
00053361
Views:
25
>>Can someone tell me the meaning of the Clear item in the Window menu?
>>I
>>always have this disable in my application.
>>
>>I was also wondering about Cascade. Has someone did a class to
>>simulate a
>>Cascade operation as we can do in most of other applications?
>
>Here's some code from my generic procedure file:
>
>procedure SysCascadeWindows
>*****
>* Procedure : SysCascadeWindows
>* Programmer : Paul Russell
>* Purpose : Cascade any Open windows that have Borders
>* Date : 12-August-97
>*
>* Description:
>*
>* Restrictions:
>*
>* Parameters:
>*
>* Returns:
>*
>* Sample Call:
>*
>* Calls:
>*
>* Variables:
>*
>* Databases:
>*
>* Change Log :
>* PAR - Created
>*
>******
>
>private all like lp*
>
>*****
>* Determine how many characters to move the Windows
>* This is the Standard Windows Border + the Size of the Close box.
>*****
>m.lpOffset = sysmetric(3)+sysmetric(5)
>
>m.lpFormNumber = 0
>m.lpFormLevel = 10
>
>*****
>* Work with each valid form in turn
>* 1) The form must exist
>* 2) It must be a Form (not a Toolbar)
>* 3) The form must be Visible and Active
>* 4) The form must have a Border
>*****
>for m.lpCount = _screen.FormCount to 1 step -1
> if type("_screen.forms(m.lpCount)") = "O" and ;
> (not IsNull(_screen.forms(m.lpCount))) and ;
> _screen.forms(m.lpCount).BaseClass = "Form" and ;
> _screen.forms(m.lpCount).Visible and ;
> _screen.forms(m.lpCount).Enabled and ;
> _screen.forms(m.lpCount).BorderStyle # 0
> *****
> * Move the Form
> *****
> _screen.forms(m.lpCount).Top = m.lpFormNumber * m.lpOffset
> _screen.forms(m.lpCount).Left = m.lpFormNumber * m.lpOffset
> *****
> * Update the number of Forms that have been moved
> *****
> if m.lpFormNumber = m.lpFormLevel
> m.lpFormNumber = 0
> else
> m.lpFormNumber = m.lpFormNumber + 1
> endif
> endif
>endfor
>
>return
>
>procedure SysCloseAllForms
>*****
>* Procedure : SysCloseAllForms
>* Programmer : Paul Russell
>* Purpose : Close all of the open windows
>* Date : 12-August-97
>*
>* Description:
>*
>* Restrictions:
>*
>* Parameters:
>*
>* Returns:
>*
>* Sample Call:
>*
>* Calls:
>*
>* Variables:
>*
>* Databases:
>*
>* Change Log :
>* PAR - Created
>*
>******
>
>private all like lp*
>
>*****
>* Work with each valid form in turn
>* 1) The form must exist
>* 2) It must be a Form (not a Toolbar)
>* 3) The form must be Visible and Active
>* 4) The form must have a Border
>*****
>for m.lpCount = _screen.FormCount to 1 step -1
> if type("_screen.forms(m.lpCount)") = "O" and ;
> (not IsNull(_screen.forms(m.lpCount))) and ;
> _screen.forms(m.lpCount).BaseClass = "Form" and ;
> _screen.forms(m.lpCount).Visible and ;
> _screen.forms(m.lpCount).Enabled and ;
> _screen.forms(m.lpCount).BorderStyle # 0
> *****
> * Close the Form
> *****
> _screen.forms(m.lpCount).Release
> endif
>endfor
>
>return

Thanks Paul, I'll try that out this week.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform