>Can anyone tell me how to convert between rows/columns and pixels.
>
>What I have been trying to do is bring up a defined window over a form that im loading just using do form.
>
>Ive been playing with the define window and size window, and I haven't been able to find anything about it. I haven't been able to see any consistency with the position and sizing rows/columns either.
>
>If anyone could shed some light on this,
>
>Thanks,
>
>Michael Henstock
>AWS
Michael,
There are wrows(), wcols(), wlcol(), wlrow() etc for window row, cols.
You could define a window with name clause and manage it like a form. ie :
Assume you have a form with a text1 control on it and you want to show a window from its right bottom corner filling up to form's rightbottom corner:
Define Window TestWindow From 1,1 To 2,2 Name myWin
With myWin
.ScaleMode = 3
.Left = Thisform.Left + Sysmetric(3) +;
Objtoclient(Thisform.Text1,2) +;
Objtoclient(Thisform.Text1,3)
.Top = Thisform.Top + Sysmetric(9) + Sysmetric(4) + ;
Objtoclient(Thisform.Text1,1) +;
Objtoclient(Thisform.Text1,4)
.Width = Thisform.Width - ;
( Objtoclient(Thisform.Text1,2) +;
Objtoclient(Thisform.Text1,3) )
.Height = Thisform.Height - ;
( Objtoclient(Thisform.Text1,1) + ;
Objtoclient(Thisform.Text1,4) )
.Show
Endwith
Cetin