Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Window help
Message
From
04/12/2016 05:56:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01644264
Message ID:
01644354
Views:
77
>>What is the READ command following the define window? Seems like I remember that you would issue a READ MODAL command to have a modal form.
>
>Greg, I went ahead and put a grid in a class which took care of it.

Good, you did do that step back and look at the larger picture. You replicated what it was doing, not how it was doing it.

In general, you can actually execute the code like that with the old-style window creation and then suspend and take a look at _screen.forms collection. You should be able to find that window - perhaps as .forms[1] or .forms[2] (the ordering is switched around, every time a window is show()n or got focus, it becomes #1). Then just do amembers() on that form/window with changed properties only, and you should be able to then create a form class which would behave the same as the window from the Create Window command, but it would now be an object and totally under your control.

Done that before, and it worked swimmingly - IIRC there was some advice from Martina to do that when I needed a tooltip form class.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform