Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing a Form
Message
From
17/04/1998 13:19:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/04/1998 04:34:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00092432
Message ID:
00092941
Views:
34
>>>My app opens to a form (frmOpen) with buttons that users click to get to various areas. In the Click method of each button, I minimize frmOpen and DO FORM to move to the selected area.
>>>
>>>If the user exits from the selected form, and no other form is open, I would like to programmatically maximize frmOpen as part of the cmdQuit Click(). I use a global array to track open forms. What I can't figure out is how to address the WindowType property of frmOpen so that it pops back up. How can I address a property or call a method of a minimized form?
>>>
>>>TIA.
>>>
>>>John
>>Since you have a reference you could access PEM via it.
>>
>>* myglobalarray[ix] hold the desired form ref.
>>myglobalarray[ix].anyproperty = anyValue
>>myglobalarray[ix].anyEventMethod()
>>myglobalarray[ix].windowstate = 2 && Maximized - or 0 Normal
>>
>>Cetin
>
>Cetin:
>
>Thanks for helping me here. My array isn't a true reference to an object--I just put the name of the form in the array. How would I put a true reference to the form object? Put it's Name property value in there?
>
>Sorry to bother you again . . .
>
>John
You're wellcome anytime.
myglobalarray[ix]=thisform         && or any object reference on hand
myglobalarray[ix]=thisform.label1  && Another object ref
*If true referencing is not used (name used)
oMyneededobject = evaluate(myglobalarray[ix]+".myObjectName")
oMyneededobject.anyproperty = myValue
* Or
&myglobalarray[ix]..myObjectName.anyproperty = myValue
* Or
with evaluate(myglobalarray[ix])  && might be eval("myFormset."+myglobalarray[ix])
  .anyproperty=myvalue
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform