Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Between rows and Pixels
Message
From
16/06/2003 04:46:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/06/2003 01:39:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00800249
Message ID:
00800262
Views:
17
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform