Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Align modal form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00286533
Message ID:
00286775
Vues:
15
That's what I originally had but it did not work either. THIS is the quick fill text box. It's left property is relative to where it is on it's FORM, not where it is relative to the SCREEN. So, if THIS.Left = 10, the qf textbox is 10 units from the left of the FORM it is on. If I then set the modal form's Left property to 10, it is 10 units from the left of the SCREEN.


>Hi Dan,
>
>What do you mean, "the form is not appearing where I think it should" ???
>
>I don't think you need THISFORM.Top in your statements. The location properties of a control in a container are -relative- to the size of the container itself.
>
>So, assuming the reference to THIS is the quick fill control and oList is the object reference to the modal form, all you need is:
>
>oList.Left = THIS.Left
>oList.Top = THIS.Top + THIS.Height
>oList.Show()
>
>HTH,
>Evan Pauley
>
>>I have a quick fill text box that I am allowing the user to enter a couple of characters then a '?'. When the '?' is entered, I gather the list of matching values so far and display them.
>>
>>I am using a modal form that has a one column grid to display the list of values. The size of the form is exactly the same size as the grid. The form has no borders or title bar. It looks like I am poping a grid on the data entry form.
>>
>>What I want to do is to line this modal form up with the left of the quick fill control and just below it.
>>
>>I have code that says:
>>
>>oList.Left = ThisForm.Left + This.Left
>>oList.Top = ThisForm.Top + This.Top + This.Height
>>oList.Show()
>>
>>However, the form is not appearing where I think it should. What is the proper way calculating the top and left positions for this form in relation to the current contro?
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform