Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close application when the main window x is clicked on
Message
 
 
To
04/08/2022 14:04:01
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01684781
Message ID:
01684793
Views:
33
>>Antonio,
>>What you wrote makes sense. But there is one problem. The main form calls a modal form and that modal forms creates a report (in a preview mode). So, if I do not have the _screen and only the main form, the report preview will only be shown within the size of the main window/form. Therefore, in order to be able to view the report in full screen (in a preview mode), I had to go with the _screen.
>>Does it make sense?
>>
>No you don't need _screen. Report... preview window {window name here}
>
>And that window name can be any form.name, so create a blank form with properties you like, instantiate it, not sure whether you even have to .show() it, and just do ...„preview window (myform.name)“. Don't put „preview IN window“, because it will create a new child window inside that window, which then means you'd have two sizes to care about.

Thank you. I didn't know I could do that. I will try changing my app; just as a learning experience.
I already sent the app to the customer; although I don't even know if he looked at it. I am sure in your carrier you have had cases when "they" had wanted something but never even looked at it :)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform