Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Between rows and Pixels
Message
De
16/06/2003 04:46:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/06/2003 01:39:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00800249
Message ID:
00800262
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform