Home > database >  The inside of the form table display problems
The inside of the form table display problems

Time:10-04

I added dynamically in a page1 a custom form controls, after each increase set like this:

With This. The Parent. GRDJHLQ
. The Visible=. T.
The Top=40
Left=250
. The Height=This. Parent. Parent. Height - 100
. Width=This. Parent. Parent. Width - 270
The Anchor=15
HighlightStyle=2
HighlightForeColor=Rgb (0, 255)
HeaderHeight=25
AutoFit ()
The Refresh ()
Endwith
But whenever page1 as the current page, which is coming back after switching, GRDJHLQ form displayed automatically back to the left and the top of the page, how to return a responsibility?

CodePudding user response:

Try
 With This. The Parent. GRDJHLQ 
. The Anchor=0
Move (40, 250, enclosing the Parent, the Parent. The Height - 100, enclosing the Parent, the Parent. The Width - 270)
The Anchor=15
HighlightStyle=2
HighlightForeColor=Rgb (0, 255)
HeaderHeight=25
AutoFit ()
The Refresh ()
. The Visible=. T.
EndWith
  •  Tags:  
  • VFP
  • Related