Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Jun Tangunan
 To: llyrad atsituab
  Where is llyrad atsituab?
 Tacloban City
 llyrad atsituab
Subject: RE: Top Left Form
Thread ID: 365265 Message ID: 365289 # Views: 53 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Monday, December 24, 2012 1:08:34 AM         

> What is the top and left in this code? so that I will be able to adjust the form pop-up position.
>  This.opop_up = Createobject('_editboxpopup', This, Thisform)
>  If !Isnull(This.opop_up)
>  This.opop_up._ShowForm(Objtoclient(This, 2), Objtoclient(This,1) + This.Height + 1)
>  Endif

> Regards:
> carbcoder_02

Based on your code, it is Left first then Top. It is determined by the 2nd parameter in reference to the objectname:

ObjToClient(This,1)   && Top
ObjToClient(This,2)   && Left
ObjToClient(This,3)   && Width
ObjToClient(This,4)   && Height

'This' basically speaking is the objectname you have used or the control where to base those positions.



Top Left Form Posted by llyrad atsituab @ 12/23/2012 2:03:20 PM
RE: Top Left Form Posted by Tore Bleken @ 12/23/2012 2:28:44 PM
RE: Top Left Form Posted by Anders Altberg @ 12/23/2012 3:50:11 PM
RE: Top Left Form Posted by Jun Tangunan @ 12/24/2012 1:08:34 AM
RE: Top Left Form Posted by llyrad atsituab @ 12/24/2012 4:19:23 AM