Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dont Allow Application To Close When Report is previewed
Message
 
To
21/01/2000 12:08:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00320807
Message ID:
00321001
Views:
27
>Bret,
>Also try this modal approach (eliminates playing with _screen) :
>
>
oForm = createobject("myModalReport","myReport")
>oForm.show()
>return
>
>define class myModalReport as Form
>  WindowState = 2
>  Caption = "My report"
>*  .TitleBar = 0 && Completely removes titlebar
>  Minbutton  = .f.
>  MaxButton = .f.
>  Movable = .f.
>  HalfHeightCaption = .t.
>  BorderStyle = 2 && Fixed dialog
>  BackColor = rgb(255,255,255)
>  WindowType = 1 && Modal
>  RepName = ""
>  procedure init
>   lparameters tcReportName
>   this.RepName = tcReportName
>  endproc
>  procedure activate
>	Report form (this.RepName) prev window (this.Name)
>	this.release
>  endproc
>enddefine
Cetin

Since this is inside a form's method, wouldn't the define class be illegal.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform